Is it possible to compute char- arrays with intel sse intrinsics? my attempt so far:
void load_and_print( char arr[], size_t l ){
__m128i __attribute__((aligned(16))) x_reg = _mm_load_si128((const __m128i *) arr);
for (int i = 0; i < l; ++i) {
unsigned short v = _mm_cvtss_f32(x_reg+i);
printf("%d ",v);
}
}
which does not work because _mm_cvtss_f32 uses loads float, but I can not find a way to use chars.
Do I have to use Bitmasks?
EDIT
The example function may load an char-array into an xmm.register and print the values from the xmm register afterwards.Just an attempt to load and retrieve an array into/from a xmm register