Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


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

[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.





Header file <intrin.h>

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

// 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;


Community Additions

© 2015 Microsoft