| 1 | // Copyright 2025 the Fearless_SIMD Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 OR MIT |
| 3 | |
| 4 | #![expect( |
| 5 | missing_docs, |
| 6 | clippy::cast_possible_truncation, |
| 7 | clippy::unseparated_literal_suffix, |
| 8 | clippy::use_self, |
| 9 | reason = "TODO: https://github.com/linebender/fearless_simd/issues/40" |
| 10 | )] |
| 11 | #![cfg_attr( |
| 12 | target_arch = "x86_64", |
| 13 | expect( |
| 14 | clippy::missing_transmute_annotations, |
| 15 | clippy::useless_transmute, |
| 16 | clippy::new_without_default, |
| 17 | reason = "TODO: https://github.com/linebender/fearless_simd/issues/40" |
| 18 | ) |
| 19 | )] |
| 20 | #![cfg_attr( |
| 21 | target_arch = "wasm32", |
| 22 | expect( |
| 23 | clippy::missing_transmute_annotations, |
| 24 | clippy::useless_transmute, |
| 25 | clippy::new_without_default, |
| 26 | reason = "TODO: https://github.com/linebender/fearless_simd/issues/40" |
| 27 | ) |
| 28 | )] |
| 29 | #![cfg_attr( |
| 30 | all( |
| 31 | feature = "std", |
| 32 | all(not(target_arch = "x86_64"), not(target_arch = "wasm32")) |
| 33 | ), |
| 34 | expect( |
| 35 | clippy::missing_safety_doc, |
| 36 | clippy::missing_transmute_annotations, |
| 37 | clippy::useless_transmute, |
| 38 | clippy::new_without_default, |
| 39 | reason = "TODO: https://github.com/linebender/fearless_simd/issues/40" |
| 40 | ) |
| 41 | )] |
| 42 | |
| 43 | //! A module containing generated files |
| 44 | //! |
| 45 | //! All files in this subdirectory are autogenerated by the `fearless_simd_gen` crate. |
| 46 | |
| 47 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 48 | mod avx2; |
| 49 | mod fallback; |
| 50 | #[cfg(target_arch = "aarch64")] |
| 51 | mod neon; |
| 52 | mod ops; |
| 53 | pub(crate) mod simd_trait; |
| 54 | mod simd_types; |
| 55 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 56 | mod sse4_2; |
| 57 | #[cfg(all(target_arch = "wasm32", target_feature = "simd128"))] |
| 58 | mod wasm; |
| 59 | |
| 60 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 61 | pub use avx2::*; |
| 62 | pub use fallback::*; |
| 63 | #[cfg(target_arch = "aarch64")] |
| 64 | pub use neon::*; |
| 65 | pub use simd_trait::*; |
| 66 | pub use simd_types::*; |
| 67 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 68 | pub use sse4_2::*; |
| 69 | #[cfg(all(target_arch = "wasm32", target_feature = "simd128"))] |
| 70 | pub use wasm::*; |