Partilhar via


__m64_dep_zr

Microsoft Specific

Emits the zero register form of the IPF Deposit (dep.z) instruction, which is used to copy a number of bits specified by len from a variable source into a bit position specified by pos of the resulting value.

__m64 __m64_dep_zr( 
   __m64 source, 
   const int pos, 
   const int len
);

Parameters

  • [in] source
    The value from which to copy the bits.

  • [in] pos
    The destination bit position for the copied bits in the result. Valid values from 0 to 63.

  • [in] len
    The number of bits to copy. Valid values from 1 to 64.

Requirements

Intrinsic

Architecture

__m64_dep_zr

IPF

Header file <intrin.h>

Remarks

The rest of the bits in the result are cleared to zero.

Example

// dep_zr.cpp
// compile with: /EHsc
// processor: IPF
#include <iostream>
#include <intrin.h>
using namespace std;

#pragma intrinsic(__m64_dep_zr)

int main()
{
  __m64 n;
  n.m64_u64 = 0x8888;
  
  __m64 result = __m64_dep_zr(n, 4, 16);

  cout << hex << "0x" << result.m64_u64;
}

Output

0x88880

See Also

Reference

__m64

Compiler Intrinsics