Skip to content

Commit 1b45d1d

Browse files
authored
Merge pull request #5458 from Rageking8/tidy-up-rotlr816-intrinsics-reference
Tidy up `_rot{l,r}{8,16}` intrinsics reference
2 parents f0245f6 + 13bc8ad commit 1b45d1d

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

docs/intrinsics/rotl8-rotl16.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
description: "Learn more about: _rotl8, _rotl16"
32
title: "_rotl8, _rotl16"
4-
ms.date: "09/02/2019"
3+
description: "Learn more about: _rotl8, _rotl16"
4+
ms.date: 09/02/2019
55
f1_keywords: ["_rotl8", "_rotl16"]
66
helpviewer_keywords: ["_rotl8 intrinsic", "_rotl16 intrinsic"]
7-
ms.assetid: 8c519ab6-aef9-4f07-a387-daee8408368f
87
---
9-
# _rotl8, _rotl16
8+
# `_rotl8`, `_rotl16`
109

1110
**Microsoft Specific**
1211

@@ -27,10 +26,10 @@ unsigned short _rotl16(
2726

2827
### Parameters
2928

30-
*value*\
29+
*`value`*\
3130
[in] The value to rotate.
3231

33-
*shift*\
32+
*`shift`*\
3433
[in] The number of bits to rotate.
3534

3635
## Return value
@@ -44,7 +43,7 @@ The rotated value.
4443
|`_rotl8`|x86, ARM, x64, ARM64|
4544
|`_rotl16`|x86, ARM, x64, ARM64|
4645

47-
**Header file** \<intrin.h>
46+
**Header file**: `<intrin.h>`
4847

4948
## Remarks
5049

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

6261
int main()
6362
{
64-
unsigned char c = 'A', c1, c2;
63+
unsigned char c = 'A';
6564

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

9493
## See also
9594

96-
[_rotr8, _rotr16](../intrinsics/rotr8-rotr16.md)\
97-
[Compiler intrinsics](../intrinsics/compiler-intrinsics.md)
95+
[`_rotr8`, `_rotr16`](rotr8-rotr16.md)\
96+
[Compiler intrinsics](compiler-intrinsics.md)

docs/intrinsics/rotr8-rotr16.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
description: "Learn more about: _rotr8, _rotr16"
32
title: "_rotr8, _rotr16"
4-
ms.date: "09/02/2019"
3+
description: "Learn more about: _rotr8, _rotr16"
4+
ms.date: 09/02/2019
55
f1_keywords: ["_rotr16", "_rotr8"]
66
helpviewer_keywords: ["_rotr8 intrinsic", "_rotr16 intrinsic"]
7-
ms.assetid: dfbd2c82-82b4-427a-ad52-51609027ebff
87
---
9-
# _rotr8, _rotr16
8+
# `_rotr8`, `_rotr16`
109

1110
**Microsoft Specific**
1211

@@ -27,10 +26,10 @@ unsigned short _rotr16(
2726

2827
### Parameters
2928

30-
*value*\
29+
*`value`*\
3130
[in] The value to rotate.
3231

33-
*shift*\
32+
*`shift`*\
3433
[in] The number of bits to rotate.
3534

3635
## Return value
@@ -44,7 +43,7 @@ The rotated value.
4443
|`_rotr8`|x86, ARM, x64, ARM64|
4544
|`_rotr16`|x86, ARM, x64, ARM64|
4645

47-
**Header file** \<intrin.h>
46+
**Header file**: `<intrin.h>`
4847

4948
## Remarks
5049

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

6261
int main()
6362
{
64-
unsigned char c = 'A', c1, c2;
63+
unsigned char c = 'A';
6564

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

9594
## See also
9695

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

0 commit comments

Comments
 (0)