Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1095 Discussions

adding a constant to array addition in sse2

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

f0 and f3 are arrays and >> is shift operation
0 Kudos
1 Reply
Brijender_B_Intel
326 Views


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

0 Kudos
Reply