Skip to content

Commit c67dfa8

Browse files
authored
Merge pull request #5005 from wesinator/patch-1
Update x64-calling-convention.md
2 parents 98408f7 + 495adf5 commit c67dfa8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/build/x64-calling-convention.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,23 @@ These examples show how parameters and return values are passed for functions wi
109109

110110
### Example of return value 1 - 64-bit result
111111

112-
```Output
112+
```cpp
113113
__int64 func1(int a, float b, int c, int d, int e);
114114
// Caller passes a in RCX, b in XMM1, c in R8, d in R9, e pushed on stack,
115115
// callee returns __int64 result in RAX.
116116
```
117117
118118
### Example of return value 2 - 128-bit result
119119
120-
```Output
120+
```cpp
121121
__m128 func2(float a, double b, int c, __m64 d);
122122
// Caller passes a in XMM0, b in XMM1, c in R8, d in R9,
123123
// callee returns __m128 result in XMM0.
124124
```
125125

126126
### Example of return value 3 - user type result by pointer
127127

128-
```Output
128+
```cpp
129129
struct Struct1 {
130130
int j, k, l; // Struct1 exceeds 64 bits.
131131
};
@@ -137,7 +137,7 @@ Struct1 func3(int a, double b, int c, float d);
137137
138138
### Example of return value 4 - user type result by value
139139
140-
```Output
140+
```cpp
141141
struct Struct2 {
142142
int j, k; // Struct2 fits in 64 bits, and meets requirements for return by value.
143143
};

0 commit comments

Comments
 (0)