Mercurial > hg > CbC > old > device
comparison test/ps2.c @ 637:140b65f8ff03
ARRAY argument in fuction
author | kono |
---|---|
date | Tue, 31 Oct 2006 20:42:42 +0900 |
parents | |
children | 35014112c01d |
comparison
equal
deleted
inserted
replaced
636:72c4a8137fff | 637:140b65f8ff03 |
---|---|
1 | |
2 int printf(const char *,...); | |
3 | |
4 typedef float ps2_vu0_fmatrix[4][4] __attribute__((aligned (16))); | |
5 typedef ps2_vu0_fmatrix FMATRIX; | |
6 | |
7 | |
8 void ps2_vu0_unit_matrix(ps2_vu0_fmatrix m); | |
9 | |
10 | |
11 void ps2_vu0_unit_matrix(ps2_vu0_fmatrix m) | |
12 { | |
13 printf("%g\n",m[1][1]); | |
14 } | |
15 | |
16 int | |
17 main(int ac, char *av[]) | |
18 { | |
19 FMATRIX m; | |
20 | |
21 m[1][1] = 0.5; | |
22 ps2_vu0_unit_matrix(m); | |
23 } |