Skip to content

Commit 73c8e30

Browse files
TylerMSFTTylerMSFT
authored andcommitted
acrolinx
1 parent 082335e commit 73c8e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cpp/fastcall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The **`__fastcall`** calling convention specifies that arguments to functions ar
1818
|Name-decoration convention|At sign (\@) is prefixed to names; an at sign followed by the number of bytes (in decimal) in the parameter list is suffixed to names.|
1919
|Case-translation convention|No case translation performed.|
2020
|Classes, structs, and unions|Treated as "multibyte" types (regardless of size) and passed on the stack. |
21-
|Enums and enum classes | Passed by register if their underlying type would be passed by register. For example, if the underlying type is `int` or `unsigned int` of size 8, 16, or 32 bits. |
21+
|Enums and enum classes | Passed by register if their underlying type is passed by register. For example, if the underlying type is `int` or `unsigned int` of size 8, 16, or 32 bits. |
2222

2323
> [!NOTE]
2424
> Future compiler versions may use different registers to store parameters.
@@ -27,7 +27,7 @@ Using the [/Gr](../build/reference/gd-gr-gv-gz-calling-convention.md) compiler o
2727

2828
The **`__fastcall`** keyword is accepted and ignored by the compilers that target ARM and x64 architectures; on an x64 chip, by convention, the first four arguments are passed in registers when possible, and additional arguments are passed on the stack. For more information, see [x64 Calling Convention](../build/x64-calling-convention.md). On an ARM chip, up to four integer arguments and eight floating-point arguments may be passed in registers, and additional arguments are passed on the stack.
2929

30-
For non-static class functions, if the function is defined out-of-line, the calling convention modifier does not have to be specified on the out-of-line definition. That is, for class non-static member methods, the calling convention specified during declaration is assumed at the point of definition. Given this class definition:
30+
For nonstatic class functions, if the function is defined out-of-line, the calling convention modifier doesn't have to be specified on the out-of-line definition. That is, for class non-static member methods, the calling convention specified during declaration is assumed at the point of definition. Given this class definition:
3131

3232
```cpp
3333
struct CMyClass {

0 commit comments

Comments
 (0)