| 1 | mod bvec2; |
| 2 | mod bvec3; |
| 3 | mod bvec4; |
| 4 | |
| 5 | #[cfg(all(feature = "core-simd", not(feature = "scalar-math")))] |
| 6 | mod coresimd; |
| 7 | |
| 8 | #[cfg(all( |
| 9 | target_arch = "aarch64", |
| 10 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 11 | ))] |
| 12 | mod neon; |
| 13 | |
| 14 | #[cfg(all( |
| 15 | target_feature = "sse2", |
| 16 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 17 | ))] |
| 18 | mod sse2; |
| 19 | |
| 20 | #[cfg(all( |
| 21 | target_feature = "simd128", |
| 22 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 23 | ))] |
| 24 | mod wasm32; |
| 25 | |
| 26 | #[cfg(any( |
| 27 | not(any( |
| 28 | feature = "core-simd", |
| 29 | target_arch = "aarch64", |
| 30 | target_feature = "sse2", |
| 31 | target_feature = "simd128" |
| 32 | )), |
| 33 | feature = "scalar-math" |
| 34 | ))] |
| 35 | mod scalar; |
| 36 | |
| 37 | pub use bvec2::BVec2; |
| 38 | pub use bvec3::BVec3; |
| 39 | pub use bvec4::BVec4; |
| 40 | |
| 41 | #[cfg(all( |
| 42 | target_arch = "aarch64", |
| 43 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 44 | ))] |
| 45 | pub use neon::bvec3a::BVec3A; |
| 46 | #[cfg(all( |
| 47 | target_arch = "aarch64", |
| 48 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 49 | ))] |
| 50 | pub use neon::bvec4a::BVec4A; |
| 51 | |
| 52 | #[cfg(all( |
| 53 | target_feature = "sse2", |
| 54 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 55 | ))] |
| 56 | pub use sse2::bvec3a::BVec3A; |
| 57 | #[cfg(all( |
| 58 | target_feature = "sse2", |
| 59 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 60 | ))] |
| 61 | pub use sse2::bvec4a::BVec4A; |
| 62 | |
| 63 | #[cfg(all( |
| 64 | target_feature = "simd128", |
| 65 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 66 | ))] |
| 67 | pub use wasm32::bvec3a::BVec3A; |
| 68 | #[cfg(all( |
| 69 | target_feature = "simd128", |
| 70 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 71 | ))] |
| 72 | pub use wasm32::bvec4a::BVec4A; |
| 73 | |
| 74 | #[cfg(all(feature = "core-simd", not(feature = "scalar-math")))] |
| 75 | pub use coresimd::bvec3a::BVec3A; |
| 76 | #[cfg(all(feature = "core-simd", not(feature = "scalar-math")))] |
| 77 | pub use coresimd::bvec4a::BVec4A; |
| 78 | |
| 79 | #[cfg(any( |
| 80 | not(any( |
| 81 | feature = "core-simd", |
| 82 | target_arch = "aarch64", |
| 83 | target_feature = "sse2", |
| 84 | target_feature = "simd128" |
| 85 | )), |
| 86 | feature = "scalar-math" |
| 87 | ))] |
| 88 | pub use scalar::bvec3a::BVec3A; |
| 89 | |
| 90 | #[cfg(not(any( |
| 91 | feature = "scalar-math", |
| 92 | feature = "core-simd", |
| 93 | target_arch = "aarch64", |
| 94 | target_feature = "sse2", |
| 95 | target_feature = "simd128" |
| 96 | ),))] |
| 97 | pub use scalar::bvec4a::BVec4A; |
| 98 | |
| 99 | mod const_test_bvec2 { |
| 100 | const_assert_eq!(1, core::mem::align_of::<super::BVec2>()); |
| 101 | const_assert_eq!(2, core::mem::size_of::<super::BVec2>()); |
| 102 | } |
| 103 | |
| 104 | mod const_test_bvec3 { |
| 105 | const_assert_eq!(1, core::mem::align_of::<super::BVec3>()); |
| 106 | const_assert_eq!(3, core::mem::size_of::<super::BVec3>()); |
| 107 | } |
| 108 | |
| 109 | mod const_test_bvec4 { |
| 110 | const_assert_eq!(1, core::mem::align_of::<super::BVec4>()); |
| 111 | const_assert_eq!(4, core::mem::size_of::<super::BVec4>()); |
| 112 | } |
| 113 | |
| 114 | #[cfg(not(feature = "scalar-math"))] |
| 115 | mod const_test_bvec3a { |
| 116 | const_assert_eq!(16, core::mem::align_of::<super::BVec3A>()); |
| 117 | const_assert_eq!(16, core::mem::size_of::<super::BVec3A>()); |
| 118 | } |
| 119 | |
| 120 | #[cfg(not(feature = "scalar-math"))] |
| 121 | mod const_test_bvec4a { |
| 122 | const_assert_eq!(16, core::mem::align_of::<super::BVec4A>()); |
| 123 | const_assert_eq!(16, core::mem::size_of::<super::BVec4A>()); |
| 124 | } |