__m64_dep_zr

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 Blank topics are included as placeholders.]

Microsoft 固有の仕様 →

結果の pos 値で指定されたビット位置が可変 source から len で指定されている数多くのビットをコピーに使用される IPF (預け入れ dep.z) 命令には登録フォームを生成します。

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

パラメーター

  • [入力] source
    ビット値をコピーします。

  • [入力] pos
    結果のビットのコピー先のビット位置。 0 から 63 まで有効な値。

  • [入力] len
    コピーするビット数。 1 から 64 まで有効な値。

必要条件

組み込み

アーキテクチャ

__m64_dep_zr

IPF

ヘッダー ファイル <intrin.h>

解説

結果のビットの他の部分はゼロになります。

使用例

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

出力

0x88880

参照

Reference

__m64

コンパイラ組み込み関数。