Developer Guide and Reference

Contents

Intrinsics for Comparison Operations

The prototypes for Intel® Advanced Vector Extensions 512 (Intel® AVX-512) intrinsics are located in the
zmmintrin.h
header file.
To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>
variable
definition
src
source element to use based on writemask result
k
writemask used as a selector
a
first source vector element
b
second source vector element
imm
comparison predicate, which can be any of the following values:
  • _MM_CMPINT_EQ
    - Equal
  • _MM_CMPINT_LT
    - Less than
  • _MM_CMPINT_LE
    - Less than or Equal
  • _MM_CMPINT_NE
    - Not Equal
  • _MM_CMPINT_NLT
    - Not Less than
  • _MM_CMPINT_GE
    - Greater than or Equal
  • _MM_CMPINT_NLE
    - Not Less than or Equal
  • _MM_CMPINT_GT
    - Greater than