Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Logical Intrinsics (MMX™ technology)

This topic summarizes the MMX™ technology logical intrinsics.

To use these intrinsics, include the immintrin.h file as follows:

#include <immintrin.h>

Intrinsic Name

Operation

Corresponding
MMX™ Instruction

_mm_and_si64

Bitwise AND

PAND

_mm_andnot_si64

Bitwise ANDNOT

PANDN

_mm_or_si64

Bitwise OR

POR

_mm_xor_si64

Bitwise Exclusive OR

PXOR

_mm_and_si64

__m64 _mm_and_si64(__m64 m1, __m64 m2);

Perform a bitwise AND of the 64-bit value in m1 with the 64-bit value in m2.

_mm_andnot_si64

__m64 _mm_andnot_si64(__m64 m1, __m64 m2);

Perform a bitwise NOT on the 64-bit value in m1 and use the result in a bitwise AND with the 64-bit value in m2.

_mm_or_si64

__m64 _mm_or_si64(__m64 m1, __m64 m2);

Perform a bitwise OR of the 64-bit value in m1 with the 64-bit value in m2.

_mm_xor_si64

__m64 _mm_xor_si64(__m64 m1, __m64 m2);

Perform a bitwise XOR of the 64-bit value in m1 with the 64-bit value in m2.