31 #include "../src/diff_sq_acc.h" 38 long long int acc = 0;
45 diff2 = (
long long int) diff * (
long long int) diff;
61 long long int ref_res;
70 a[i] = rand() % (1024*16);
71 b[i] = rand() % (1024*16);
83 printf(
"got %lld expected %lld\n", (
long long int) res.to_double(), (
long long int) ref_res);
84 if ( (ref_res - (
long long int) res) !=0 ) cnt++;
89 printf(
"TEST FAILED: %d errors\n", cnt);
94 printf(
"TEST SUCCESS!\n");
void diff_sq_acc(din_t a[N], din_t b[N], dout_t *dout)
void ref_diff_sq_acc(int a[N], int b[N], long long int *dout)
static const uint32_t k[]