diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/ps2.c	Tue Oct 31 20:42:42 2006 +0900
@@ -0,0 +1,23 @@
+
+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);
+}