init: HW1

This commit is contained in:
ytshih committed 2026-10-05 04:41:24 +08:00
commit bf65e37202
20 files changed
+1197

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#include "test.h"
double test3(double *__restrict a, int N) {
__builtin_assume(N == 1024);
a = (double *)__builtin_assume_aligned(a, 16);
double b = 0;
for (int i=0; i<I; i++) {
for (int j=0; j<N; j++) {
b += a[j];
}
}
return b;
}