#include #include #include _Static_assert(sizeof(double)==8, "Double must be 64-bits."); double vec[2]; static void _seed(const void* from) { memcpy(vec, from, sizeof(double)*2); } double fract(double x) { return x - floor(x); } double dot(double *v, double *u, int n) { register double res = 0; for(register int i=0;i