c++ - Mistake with loading double precision, floating point values on the registers? -
i'm trying learn operations using intrinsic, when simple loading of double precision values on registers following, gives memory access violation error. i'm sure i'm doing naive error. please identify error is?
double a[2] = {10,12}; double * pointer = &a[0]; __m128d v = _mm_load_pd(pointer);
thanks!
a
must 16-bit aligned; depending compiler, have mark __declspec(align(16))
(vc++) or __attribute__((aligned(16)))
(gcc).
Comments
Post a Comment