| Crates.io | mafs |
| lib.rs | mafs |
| version | 0.1.0 |
| created_at | 2023-08-29 20:28:15.702295+00 |
| updated_at | 2023-08-29 20:28:15.702295+00 |
| description | Fast maths for tiny projects. With SIMD but just for x86 |
| homepage | |
| repository | https://github.com/alucas2/mafs |
| max_upload_size | |
| id | 958419 |
| size | 57,359 |
🚩 Works only on the x86_64 CPU architecture with the AVX2 and FMA extensions!
They can be enabled by putting these lines inside .cargo/config.toml, located either at the root of your
project or in the installation directory of cargo:
[build]
rustflags = ["-Ctarget-feature=+avx2,+fma"]
Dvec2 - 2D vectorDvec4 - 4D vectorDmat4 - 4x4 matrixFvec2 - 2D vector (this one is not SIMD)Fvec4 - 4D vetcorFmat4 - 4x4 matrix+, -, * and /):
bytemuck to mark all vectors as Plain Old Data.