__shiftright128
Microsoft Specific
Shifts a 128-bit quantity, represented as two 64-bit quantities LowPart
and HighPart
, to the right by a number of bits specified by Shift
and returns the low 64 bits of the result.
Syntax
unsigned __int64 __shiftright128(
unsigned __int64 LowPart,
unsigned __int64 HighPart,
unsigned char Shift
);
Parameters
LowPart
[in] The low 64 bits of the 128-bit quantity to shift.
HighPart
[in] The high 64 bits of the 128-bit quantity to shift.
Shift
[in] The number of bits to shift.
Return value
The low 64 bits of the result.
Requirements
Intrinsic | Architecture |
---|---|
__shiftright128 |
x64 |
Header file <intrin.h>
Remarks
The Shift
value is always modulo 64 so that, for example, if you call __shiftright128(0, 1, 64)
, the function will shift the high part 0
bits right and return a low part of 0
and not 1
as might otherwise be expected.
Example
For an example, see __shiftleft128.
END Microsoft Specific
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho