adding a constant to array addition in sse2

adding a constant to array addition in sse2

how do i write the c++ code below in sse2? especially how to deal with the constant 12
b[j] = (short)((f0 + f3 + 12) >> 3);

f0 and f3 are arrays and >> is shift operation

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

_m128i xmm = _mm_set_epi32(12, 12, 12, 12).

Leave a Comment

Please sign in to add a comment. Not a member? Join today