__ull_rshift
[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 Blank topics are included as placeholders.]
Microsoft 固有の仕様 →
x64Shift 2 番目のパラメーターで指定されている数多くのビットを右側に最初のパラメーターで指定される 64 ビット値。
unsigned __int64 __ull_rshift(
unsigned __int64 mask,
int nBit
);
パラメーター
[入力] mask
アクセス許可を再配置 64 ビット整数値。[入力] nBit
x86残りの 32 ビット シフトするとx64残りの 64 個の数値。
戻り値
nBit のビットで移動するマスク。
必要条件
組み込み |
アーキテクチャ |
---|---|
__ull_rshift |
x86x64 |
ヘッダー ファイル <intrin.h>
解説
2 番目のパラメーターが x86 (x64) 63 の 31 より大きい場合その値はシフトするビット数を決定する剰余 32 (x64) 64 取得されます。 名前の ull は unsigned long long (unsigned __int64) を示します。
使用例
// ull_rshift.cpp
// compile with: /EHsc
// processor: x86, x64
#include <iostream>
#include <intrin.h>
using namespace std;
#pragma intrinsic(__ull_rshift)
int main()
{
unsigned __int64 mask = 0x100;
int nBit = 8;
mask = __ull_rshift(mask, nBit);
cout << hex << mask << endl;
}
出力
1