feat: part2 and zip

This commit is contained in:
ytshih committed 2026-10-05 09:13:57 +08:00
1 parent 948d16d378
commit 54a56ee8a0
7 files changed
+41 -4

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#include "test.h"
void test2(float *__restrict a, float *__restrict b, float *__restrict c, int N)
{
__builtin_assume(N == 1024);
a = (float *)__builtin_assume_aligned(a, 16);
b = (float *)__builtin_assume_aligned(b, 16);
for (int i = 0; i < I; i++)
{
for (int j = 0; j < N; j++)
{
/* max() */
c[j] = a[j];
if (b[j] > a[j])
c[j] = b[j];
}
}
}