diff options
| author | beetrees <b@beetr.ee> | 2024-04-28 19:22:51 +0100 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2024-04-28 19:27:05 +0100 |
| commit | fc1e52a1078b7cf983ddf1b1d84c871f26dcb9de (patch) | |
| tree | bd3c0c5ffde977fa9cb240d395320cf740b54665 /src | |
| parent | ce609db948f210807f61da999c57bd4ae5216254 (diff) | |
| download | rust-fc1e52a1078b7cf983ddf1b1d84c871f26dcb9de.tar.gz rust-fc1e52a1078b7cf983ddf1b1d84c871f26dcb9de.zip | |
Add tracking issue and unstable book page for `"vectorcall"` ABI
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/abi-vectorcall.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/language-features/abi-vectorcall.md b/src/doc/unstable-book/src/language-features/abi-vectorcall.md new file mode 100644 index 00000000000..56273bfdb79 --- /dev/null +++ b/src/doc/unstable-book/src/language-features/abi-vectorcall.md @@ -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)); +} +``` |
