From ffe5110b30557d9f4aadd4660bc83e3d6c054a2d Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:26:27 -0400 Subject: [PATCH] Fix documentation on supported architectures for SIMD (#533) --- README.md | 2 ++ src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b212ac3a..e93e1d1e 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ SIMD is supported on `x86`, `x86_64` and `wasm32` targets. * `SSE2` is enabled by default on `x86_64` targets. * To enable `SSE2` on `x86` targets add `-C target-feature=+sse2` to `RUSTCFLAGS`. +* `NEON` is enabled by default on `aarch64` targets. +* To enable `NEON` on `aarch64` targets add `-C target-feature=+neon` to `RUSTFLAGS`. * To enable `simd128` on `wasm32` targets add `-C target-feature=+simd128` to `RUSTFLAGS`. * Experimental [portable simd] support can be enabled with the `core-simd` diff --git a/src/lib.rs b/src/lib.rs index 86914f9b..25c2d88f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,7 +46,7 @@ padding so that object sizes and layouts will not change between architectures. math fallback implementations exist when SIMD is not available. It is intended to add support for other SIMD architectures once they appear in stable Rust. -Currently only SSE2 on x86/x86_64 is supported as this is what stable Rust supports. +Currently only SSE2 on x86/x86_64, NEON on Aarch64, and simd128 on WASM are supported. ## Vec3A and Mat3A