Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public

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

Document Table of Contents

Move Mask Operators

  • Creates a 2-bit mask from the most significant bits of the two, double-precision floating-point values of A, as follows:
    int i = move_mask(F64vec2 A)
    i := sign(a1)<<1 | sign(a0)<<0
    Corresponding intrinsic: _mm_movemask_pd
  • Creates a 4-bit mask from the most significant bits of the four, single-precision floating-point values of A, as follows:
    int i = move_mask(F32vec4 A)
    i := sign(a3)<<3 | sign(a2)<<2 | sign(a1)<<1 | sign(a0)<<0
    
    Corresponding intrinsic: _mm_movemask_ps