Skip to content

Tidy up _rot{l,r}{8,16} intrinsics reference #5458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions docs/intrinsics/rotl8-rotl16.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
description: "Learn more about: _rotl8, _rotl16"
title: "_rotl8, _rotl16"
ms.date: "09/02/2019"
description: "Learn more about: _rotl8, _rotl16"
ms.date: 09/02/2019
f1_keywords: ["_rotl8", "_rotl16"]
helpviewer_keywords: ["_rotl8 intrinsic", "_rotl16 intrinsic"]
ms.assetid: 8c519ab6-aef9-4f07-a387-daee8408368f
---
# _rotl8, _rotl16
# `_rotl8`, `_rotl16`

**Microsoft Specific**

Expand All @@ -27,10 +26,10 @@ unsigned short _rotl16(

### Parameters

*value*\
*`value`*\
[in] The value to rotate.

*shift*\
*`shift`*\
[in] The number of bits to rotate.

## Return value
Expand All @@ -44,7 +43,7 @@ The rotated value.
|`_rotl8`|x86, ARM, x64, ARM64|
|`_rotl16`|x86, ARM, x64, ARM64|

**Header file** \<intrin.h>
**Header file**: `<intrin.h>`

## Remarks

Expand All @@ -61,7 +60,7 @@ Unlike a left-shift operation, when executing a left rotation, the high-order bi

int main()
{
unsigned char c = 'A', c1, c2;
unsigned char c = 'A';

for (int i = 0; i < 8; i++)
{
Expand Down Expand Up @@ -93,5 +92,5 @@ Rotating unsigned short 0x12 left by 10 bits gives 0x4800

## See also

[_rotr8, _rotr16](../intrinsics/rotr8-rotr16.md)\
[Compiler intrinsics](../intrinsics/compiler-intrinsics.md)
[`_rotr8`, `_rotr16`](rotr8-rotr16.md)\
[Compiler intrinsics](compiler-intrinsics.md)
19 changes: 9 additions & 10 deletions docs/intrinsics/rotr8-rotr16.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
description: "Learn more about: _rotr8, _rotr16"
title: "_rotr8, _rotr16"
ms.date: "09/02/2019"
description: "Learn more about: _rotr8, _rotr16"
ms.date: 09/02/2019
f1_keywords: ["_rotr16", "_rotr8"]
helpviewer_keywords: ["_rotr8 intrinsic", "_rotr16 intrinsic"]
ms.assetid: dfbd2c82-82b4-427a-ad52-51609027ebff
---
# _rotr8, _rotr16
# `_rotr8`, `_rotr16`

**Microsoft Specific**

Expand All @@ -27,10 +26,10 @@ unsigned short _rotr16(

### Parameters

*value*\
*`value`*\
[in] The value to rotate.

*shift*\
*`shift`*\
[in] The number of bits to rotate.

## Return value
Expand All @@ -44,7 +43,7 @@ The rotated value.
|`_rotr8`|x86, ARM, x64, ARM64|
|`_rotr16`|x86, ARM, x64, ARM64|

**Header file** \<intrin.h>
**Header file**: `<intrin.h>`

## Remarks

Expand All @@ -61,7 +60,7 @@ Unlike a right-shift operation, when executing a right rotation, the low-order b

int main()
{
unsigned char c = 'A', c1, c2;
unsigned char c = 'A';

for (int i = 0; i < 8; i++)
{
Expand Down Expand Up @@ -94,5 +93,5 @@ Rotating unsigned short 0x12 right by 10 bits gives 0x480

## See also

[_rotl8, _rotl16](../intrinsics/rotl8-rotl16.md)\
[Compiler intrinsics](../intrinsics/compiler-intrinsics.md)
[`_rotl8`, `_rotl16`](rotl8-rotl16.md)\
[Compiler intrinsics](compiler-intrinsics.md)