Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 1.95 KB

File metadata and controls

83 lines (69 loc) · 1.95 KB
title __shiftright128 | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
__shiftright128
dev_langs
C++
helpviewer_keywords
__shiftright128 intrinsic
ms.assetid 5419a6c4-0de1-43fb-b314-4faa5b2d051f
caps.latest.revision 12
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

__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

[in] LowPart
The low 64 bits of the 128-bit quantity to shift.

[in] HighPart
The high 64 bits of the 128-bit quantity to shift.

[in] Shift
The number of bits to shift.

Return Value

The low 64 bits of the result.

Requirements

Intrinsic Architecture
__shiftright128 [!INCLUDEvcprx64]

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

__shiftleft128
Compiler Intrinsics