summaryrefslogtreecommitdiff
path: root/test-chill/test-cases/chill/mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-chill/test-cases/chill/mm.c')
-rw-r--r--test-chill/test-cases/chill/mm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-chill/test-cases/chill/mm.c b/test-chill/test-cases/chill/mm.c
new file mode 100644
index 0000000..354d929
--- /dev/null
+++ b/test-chill/test-cases/chill/mm.c
@@ -0,0 +1,15 @@
+
+
+void mm(float **A, float **B, float **C, int ambn, int an, int bm) {
+ int i, j, n;
+
+ for(i = 0; i < an; i++) {
+ for(j = 0; j < bm; j++) {
+ C[i][j] = 0.0f;
+ for(n = 0; n < ambn; n++) {
+ C[i][j] += A[i][n] * B[n][j];
+ }
+ }
+ }
+}
+