Update .gitignore
[riscv-tests.git] / mt / vvadd1.c
1 #include "stdlib.h"
2 #include "dataset.h"
3
4 void __attribute__((noinline)) vvadd(int coreid, int ncores, size_t n, const data_t* x, const data_t* y, data_t* z)
5 {
6 size_t i;
7 for (i = coreid*4; i < n; i += 8*ncores) {
8 z[i] = x[i] + y[i];
9 z[i+1] = x[i+1] + y[i+1];
10 z[i+2] = x[i+2] + y[i+2];
11 z[i+3] = x[i+3] + y[i+3];
12 z[i+ncores*4] = x[i+ncores*4] + y[i+ncores*4];
13 z[i+ncores*4+1] = x[i+ncores*4+1] + y[i+ncores*4+1];
14 z[i+ncores*4+2] = x[i+ncores*4+2] + y[i+ncores*4+2];
15 z[i+ncores*4+3] = x[i+ncores*4+3] + y[i+ncores*4+3];
16 }
17 }