__m64_dep_zi

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

Microsoft 固有の仕様 →

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

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

パラメーター

  • [入力] source
    結果にコピーするビットのソースとして機能する 8 ビットの定数値。

  • [入力] pos
    ビットをコピーする結果のビット位置。

  • [入力] len
    コピーするビット数。

必要条件

組み込み

アーキテクチャ

__m64_dep_zi

IPF

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

解説

拡張された符号ビットがコピーされます。 結果のビットの他の部分はゼロになります。

使用例

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

#pragma intrinsic(__m64_dep_zi)

int main()
{
  const int imm = 0x12;
  
  __m64 result = __m64_dep_zi(imm, 4, 16);

  cout << hex << "0x" << result.m64_i64 << endl;

  // When copying a number of bits larger than an int,
  // the copied bits are sign extended:
  const int imm2 = -1;
  result = __m64_dep_zi(imm2, 0, 56); 
  
  cout << hex << "0x" << result.m64_i64;
}

出力

0x120
0xffffffffffffff

参照

Reference

__m64

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