Floating-point Logical Operations for Streaming SIMD Extensions 2

The prototypes for Streaming SIMD Extensions 2 (SSE2) intrinsics are in the emmintrin.h header file.

__m128d _mm_and_pd(__m128d a, __m128d b)

(uses ANDPD) Computes the bitwise AND of the two DP FP values of a and b.
r0 := a0 & b0
r1 := a1 & b1

__m128d _mm_andnot_pd(__m128d a, __m128d b)

(uses ANDNPD) Computes the bitwise AND of the 128-bit value in b and the bitwise NOT of the 128-bit value in a.
r0 := (~a0) & b0
r1 := (~a1) & b1

__m128d _mm_or_pd(__m128d a, __m128d b)

(uses ORPD) Computes the bitwise OR of the two DP FP values of a and b.
r0 := a0 | b0
r1 := a1 | b1

__m128d _mm_xor_pd(__m128d a, __m128d b)

(uses XORPD) Computes the bitwise XOR of the two DP FP values of a and b.
r0 := a0 ^ b0
r1 := a1 ^ b1