Mercurial > hg > CbC > old > device
view test/ps2.c @ 637:140b65f8ff03
ARRAY argument in fuction
author | kono |
---|---|
date | Tue, 31 Oct 2006 20:42:42 +0900 |
parents | |
children | 35014112c01d |
line wrap: on
line source
int printf(const char *,...); typedef float ps2_vu0_fmatrix[4][4] __attribute__((aligned (16))); typedef ps2_vu0_fmatrix FMATRIX; void ps2_vu0_unit_matrix(ps2_vu0_fmatrix m); void ps2_vu0_unit_matrix(ps2_vu0_fmatrix m) { printf("%g\n",m[1][1]); } int main(int ac, char *av[]) { FMATRIX m; m[1][1] = 0.5; ps2_vu0_unit_matrix(m); }