Skip to content

Commit

Permalink
Fix documentation on supported architectures for SIMD (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 authored Jul 2, 2024
1 parent e1b521a commit ffe5110
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffe5110

Please sign in to comment.