about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2024-04-28 19:22:51 +0100
committerbeetrees <b@beetr.ee>2024-04-28 19:27:05 +0100
commitfc1e52a1078b7cf983ddf1b1d84c871f26dcb9de (patch)
treebd3c0c5ffde977fa9cb240d395320cf740b54665 /src
parentce609db948f210807f61da999c57bd4ae5216254 (diff)
downloadrust-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.md19
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));
+}
+```