blob: 8f4d43f2c4576e21be765934a50931fd50fcef5f [file] [log] [blame]
#include "stdlib.h"
#include "dataset.h"
//--------------------------------------------------------------------------
// vvadd function
void __attribute__((noinline)) vvadd(int coreid, int ncores, size_t n, const data_t* x, const data_t* y, data_t* z)
{
size_t i;
// interleave accesses
for (i = coreid; i < n; i+=ncores)
{
z[i] = x[i] + y[i];
}
}