Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
1058 Discussions

adding a constant to array addition in sse2

Smart_Lubobya
Beginner
162 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
162 Views


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

Reply