forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#124486 - beetrees:vectorcall-tracking-issue…
…, r=ehuss Add tracking issue and unstable book page for `"vectorcall"` ABI Originally added in 2015 by rust-lang#30567, the Windows `"vectorcall"` ABI didn't have a tracking issue until now. Tracking issue: rust-lang#124485
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/doc/unstable-book/src/language-features/abi-vectorcall.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# `abi_vectorcall` | ||
|
||
The tracking issue for this feature is: [#124485] | ||
|
||
[#124485]: https://github.com/rust-lang/rust/issues/124485 | ||
|
||
------------------------ | ||
|
||
Adds support for the Windows `"vectorcall"` ABI, the equivalent of `__vectorcall` in MSVC. | ||
|
||
```rust,ignore (only-windows-or-x86-or-x86-64) | ||
extern "vectorcall" { | ||
fn add_f64s(x: f64, y: f64) -> f64; | ||
} | ||
fn main() { | ||
println!("{}", add_f64s(2.0, 4.0)); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters