Skip to content

Commit f476ccd

Browse files
author
Colin Robertson
committed
Mix Markdig issues in intrinsics
1 parent a1ec6ef commit f476ccd

File tree

134 files changed

+8821
-8290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+8821
-8290
lines changed

docs/intrinsics/addfsbyte-addfsword-addfsdword.md

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -13,49 +13,53 @@ ms.author: "corob"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# __addfsbyte, __addfsword, __addfsdword
16-
**Microsoft Specific**
17-
18-
Add a value to a memory location specified by an offset relative to the beginning of the `FS` segment.
19-
20-
## Syntax
21-
22-
```
23-
void __addfsbyte( 
24-
unsigned long Offset, 
25-
unsigned char Data 
26-
);
27-
void __addfsword( 
28-
unsigned long Offset, 
29-
unsigned short Data 
30-
);
31-
void __addfsdword( 
32-
unsigned long Offset, 
33-
unsigned long Data 
34-
);
35-
```
36-
37-
#### Parameters
16+
17+
**Microsoft Specific**
18+
19+
Add a value to a memory location specified by an offset relative to the beginning of the `FS` segment.
20+
21+
## Syntax
22+
23+
```
24+
void __addfsbyte( 
25+
unsigned long Offset, 
26+
unsigned char Data 
27+
);
28+
void __addfsword( 
29+
unsigned long Offset, 
30+
unsigned short Data 
31+
);
32+
void __addfsdword( 
33+
unsigned long Offset, 
34+
unsigned long Data 
35+
);
36+
```
37+
38+
#### Parameters
39+
3840
*Offset*<br/>
39-
[in] The offset from the beginning of `FS`.
40-
41+
[in] The offset from the beginning of `FS`.
42+
4143
*Data*<br/>
42-
[in] The value to add to the memory location.
43-
44-
## Requirements
45-
46-
|Intrinsic|Architecture|
47-
|---------------|------------------|
48-
|`__addfsbyte`|x86|
49-
|`__addfsword`|x86|
50-
|`__addfsdword`|x86|
51-
52-
## Remarks
53-
These routines are available only as intrinsics.
54-
55-
**END Microsoft Specific**
56-
57-
## See Also
58-
[__incfsbyte, \__incfsword, \__incfsdword](../intrinsics/incfsbyte-incfsword-incfsdword.md)
59-
[__readfsbyte, \__readfsdword, \__readfsqword, \__readfsword](../intrinsics/readfsbyte-readfsdword-readfsqword-readfsword.md)
60-
[__writefsbyte, \__writefsdword, \__writefsqword, \__writefsword](../intrinsics/writefsbyte-writefsdword-writefsqword-writefsword.md)
61-
[Compiler Intrinsics](../intrinsics/compiler-intrinsics.md)
44+
[in] The value to add to the memory location.
45+
46+
## Requirements
47+
48+
|Intrinsic|Architecture|
49+
|---------------|------------------|
50+
|`__addfsbyte`|x86|
51+
|`__addfsword`|x86|
52+
|`__addfsdword`|x86|
53+
54+
## Remarks
55+
56+
These routines are available only as intrinsics.
57+
58+
**END Microsoft Specific**
59+
60+
## See Also
61+
62+
[__incfsbyte, \__incfsword, \__incfsdword](../intrinsics/incfsbyte-incfsword-incfsdword.md)<br/>
63+
[__readfsbyte, \__readfsdword, \__readfsqword, \__readfsword](../intrinsics/readfsbyte-readfsdword-readfsqword-readfsword.md)<br/>
64+
[__writefsbyte, \__writefsdword, \__writefsqword, \__writefsword](../intrinsics/writefsbyte-writefsdword-writefsqword-writefsword.md)<br/>
65+
[Compiler Intrinsics](../intrinsics/compiler-intrinsics.md)

docs/intrinsics/addgsbyte-addgsword-addgsdword-addgsqword.md

Lines changed: 53 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,58 @@ ms.author: "corob"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# __addgsbyte, __addgsword, __addgsdword, __addgsqword
16-
**Microsoft Specific**
17-
18-
Add a value to a memory location specified by an offset relative to the beginning of the `GS` segment.
19-
20-
## Syntax
21-
22-
```
23-
void __addgsbyte( 
24-
unsigned long Offset, 
25-
unsigned char Data 
26-
);
27-
void __addgsword( 
28-
unsigned long Offset, 
29-
unsigned short Data 
30-
);
31-
void __addgsdword( 
32-
unsigned long Offset, 
33-
unsigned long Data 
34-
);
35-
void __addgsqword( 
36-
unsigned long Offset, 
37-
unsigned __int64 Data 
38-
);
39-
```
40-
41-
#### Parameters
16+
17+
**Microsoft Specific**
18+
19+
Add a value to a memory location specified by an offset relative to the beginning of the `GS` segment.
20+
21+
## Syntax
22+
23+
```
24+
void __addgsbyte( 
25+
unsigned long Offset, 
26+
unsigned char Data 
27+
);
28+
void __addgsword( 
29+
unsigned long Offset, 
30+
unsigned short Data 
31+
);
32+
void __addgsdword( 
33+
unsigned long Offset, 
34+
unsigned long Data 
35+
);
36+
void __addgsqword( 
37+
unsigned long Offset, 
38+
unsigned __int64 Data 
39+
);
40+
```
41+
42+
#### Parameters
43+
4244
*Offset*<br/>
43-
[in] The offset from the beginning of `GS`.
44-
45+
[in] The offset from the beginning of `GS`.
46+
4547
*Data*<br/>
46-
[in] The value to add to the memory location.
47-
48-
## Requirements
49-
50-
|Intrinsic|Architecture|
51-
|---------------|------------------|
52-
|`__addgsbyte`|x64|
53-
|`__addgsword`|x64|
54-
|`__addgsdword`|x64|
55-
|`__addgsqword`|x64|
56-
57-
## Remarks
58-
These intrinsics are available in kernel mode only, and these routines are only available as intrinsics.
59-
60-
**END Microsoft Specific**
61-
62-
## See Also
63-
[__incgsbyte, \__incgsword, \__incgsdword, \__incgsqword](../intrinsics/incgsbyte-incgsword-incgsdword-incgsqword.md)
64-
[__readgsbyte, \__readgsdword, \__readgsqword, \__readgsword](../intrinsics/readgsbyte-readgsdword-readgsqword-readgsword.md)
65-
[__writegsbyte, \__writegsdword, \__writegsqword, \__writegsword](../intrinsics/writegsbyte-writegsdword-writegsqword-writegsword.md)
66-
[Compiler Intrinsics](../intrinsics/compiler-intrinsics.md)
48+
[in] The value to add to the memory location.
49+
50+
## Requirements
51+
52+
|Intrinsic|Architecture|
53+
|---------------|------------------|
54+
|`__addgsbyte`|x64|
55+
|`__addgsword`|x64|
56+
|`__addgsdword`|x64|
57+
|`__addgsqword`|x64|
58+
59+
## Remarks
60+
61+
These intrinsics are available in kernel mode only, and these routines are only available as intrinsics.
62+
63+
**END Microsoft Specific**
64+
65+
## See Also
66+
67+
[__incgsbyte, \__incgsword, \__incgsdword, \__incgsqword](../intrinsics/incgsbyte-incgsword-incgsdword-incgsqword.md)<br/>
68+
[__readgsbyte, \__readgsdword, \__readgsqword, \__readgsword](../intrinsics/readgsbyte-readgsdword-readgsqword-readgsword.md)<br/>
69+
[__writegsbyte, \__writegsdword, \__writegsqword, \__writegsword](../intrinsics/writegsbyte-writegsdword-writegsqword-writegsword.md)<br/>
70+
[Compiler Intrinsics](../intrinsics/compiler-intrinsics.md)

docs/intrinsics/addressofreturnaddress.md

Lines changed: 63 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -13,63 +13,66 @@ ms.author: "corob"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# _AddressOfReturnAddress
16-
**Microsoft Specific**
17-
18-
Provides the address of the memory location that holds the return address of the current function. This address may not be used to access other memory locations (for example, the function's arguments).
19-
20-
## Syntax
21-
22-
```
23-
void * _AddressOfReturnAddress();
24-
```
25-
26-
## Requirements
27-
28-
|Intrinsic|Architecture|
29-
|---------------|------------------|
30-
|`_AddressOfReturnAddress`|x86, x64|
31-
32-
**Header file** \<intrin.h>
33-
34-
## Remarks
35-
When `_AddressOfReturnAddress` is used in a program compiled with [/clr](../build/reference/clr-common-language-runtime-compilation.md), the function containing the `_AddressOfReturnAddress` call is compiled as a native function. When a function compiled as managed calls into the function containing `_AddressOfReturnAddress`, `_AddressOfReturnAddress` might not behave as expected.
36-
37-
This routine is only available as an intrinsic.
38-
39-
## Example
40-
41-
```
42-
// compiler_intrinsics_AddressOfReturnAddress.cpp
43-
// processor: x86, x64
44-
#include <stdio.h>
45-
#include <intrin.h>
46-
47-
// This function will print three values:
48-
// (1) The address retrieved from _AddressOfReturnAdress
49-
// (2) The return address stored at the location returned in (1)
50-
// (3) The return address retrieved the _ReturnAddress* intrinsic
51-
// Note that (2) and (3) should be the same address.
52-
__declspec(noinline)
53-
void func() {
54-
void* pvAddressOfReturnAddress = _AddressOfReturnAddress();
55-
printf_s("%p\n", pvAddressOfReturnAddress);
56-
printf_s("%p\n", *((void**) pvAddressOfReturnAddress));
57-
printf_s("%p\n", _ReturnAddress());
58-
}
59-
60-
int main() {
61-
func();
62-
}
63-
```
64-
65-
```Output
66-
0012FF78
67-
00401058
68-
00401058
69-
```
70-
71-
**END Microsoft Specific**
72-
73-
## See Also
74-
[Compiler Intrinsics](../intrinsics/compiler-intrinsics.md)
75-
[Keywords](../cpp/keywords-cpp.md)
16+
17+
**Microsoft Specific**
18+
19+
Provides the address of the memory location that holds the return address of the current function. This address may not be used to access other memory locations (for example, the function's arguments).
20+
21+
## Syntax
22+
23+
```
24+
void * _AddressOfReturnAddress();
25+
```
26+
27+
## Requirements
28+
29+
|Intrinsic|Architecture|
30+
|---------------|------------------|
31+
|`_AddressOfReturnAddress`|x86, x64|
32+
33+
**Header file** \<intrin.h>
34+
35+
## Remarks
36+
37+
When `_AddressOfReturnAddress` is used in a program compiled with [/clr](../build/reference/clr-common-language-runtime-compilation.md), the function containing the `_AddressOfReturnAddress` call is compiled as a native function. When a function compiled as managed calls into the function containing `_AddressOfReturnAddress`, `_AddressOfReturnAddress` might not behave as expected.
38+
39+
This routine is only available as an intrinsic.
40+
41+
## Example
42+
43+
```
44+
// compiler_intrinsics_AddressOfReturnAddress.cpp
45+
// processor: x86, x64
46+
#include <stdio.h>
47+
#include <intrin.h>
48+
49+
// This function will print three values:
50+
// (1) The address retrieved from _AddressOfReturnAdress
51+
// (2) The return address stored at the location returned in (1)
52+
// (3) The return address retrieved the _ReturnAddress* intrinsic
53+
// Note that (2) and (3) should be the same address.
54+
__declspec(noinline)
55+
void func() {
56+
void* pvAddressOfReturnAddress = _AddressOfReturnAddress();
57+
printf_s("%p\n", pvAddressOfReturnAddress);
58+
printf_s("%p\n", *((void**) pvAddressOfReturnAddress));
59+
printf_s("%p\n", _ReturnAddress());
60+
}
61+
62+
int main() {
63+
func();
64+
}
65+
```
66+
67+
```Output
68+
0012FF78
69+
00401058
70+
00401058
71+
```
72+
73+
**END Microsoft Specific**
74+
75+
## See Also
76+
77+
[Compiler Intrinsics](../intrinsics/compiler-intrinsics.md)<br/>
78+
[Keywords](../cpp/keywords-cpp.md)

0 commit comments

Comments
 (0)