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