Addressing a non-integer address, and sse
问题 I am trying to accelerate my code using sse, and the following code works well. Basically a __m128 variable should point to 4 floats in a row, in order to do 4 operations at once. This code is equivalent to computing c[i]=a[i]+b[i] with i from 0 to 3 . float *data1,*data2,*data3 // ... code ... allocating data1-2-3 which are very long. __m128* a = (__m128*) (data1); __m128* b = (__m128*) (data2); __m128* c = (__m128*) (data3); *c = _mm_add_ps(*a, *b); However, when I want to shift a bit the