19 lines
392 B
C
19 lines
392 B
C
#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() */
|
|
if (b[j] > a[j]) c[j] = b[j];
|
|
else c[j] = a[j];
|
|
}
|
|
}
|
|
}
|