Hi Vijay, it appears that the code example given does not use our current intrinsic header file. I've modified the code below to make use of this. I'll let our doc team know about this.
Unfortunately I don't have an SSE3 machine connected at the moment, but I'll get this tested later today to see what the issue is with runtime.
Thanks,
Kang Su Gatlin
Visual C++ Program Manager
#include <stdio.h>
#include <intrin.h>
int main( )
{
__m128d u, v, w;
double a[2] = { 0.1, 0.2 };
double b[2] = { 0.001, 0.002 };
printf_s("Loading double values %e %e into XMM register.\n",
a[0], a[1] );
u = _mm_load_pd(a);
printf_s("Loading double values %e %e into XMM register.\n",
b[0], b[1] );
v = _mm_load_pd(b);
printf_s("Calling _mm_addsub_pd to modify these values.\n");
w = _mm_addsub_pd ( u , v);
printf_s("Result: %e %e \n", w.m128d_f64[0], w.m128d_f64[1]);
}
Thanks,
Kang Su Gatlin
Visual C++ Program Manager