| 1 | mod affine2rust-analyzer cargo glam 0.27.0 f32/affine2/; |
| 2 | mod affine3arust-analyzer cargo glam 0.27.0 f32/affine3a/; |
| 3 | mod floatrust-analyzer cargo glam 0.27.0 f32/float/; |
| 4 | mod mat3rust-analyzer cargo glam 0.27.0 f32/mat3/; |
| 5 | pub(craterust-analyzer cargo glam 0.27.0 crate/) mod mathrust-analyzer cargo glam 0.27.0 f32/math/; |
| 6 | mod vec2rust-analyzer cargo glam 0.27.0 f32/vec2/; |
| 7 | mod vec3rust-analyzer cargo glam 0.27.0 f32/vec3/; |
| 8 | |
| 9 | #[cfg(all(feature = "core-simd", not(feature = "scalar-math")))] |
| 10 | mod coresimd; |
| 11 | |
| 12 | #[cfg(any( |
| 13 | not(any( |
| 14 | feature = "core-simd", |
| 15 | target_feature = "sse2", |
| 16 | target_feature = "simd128" |
| 17 | )), |
| 18 | feature = "scalar-math" |
| 19 | ))] |
| 20 | mod scalar; |
| 21 | |
| 22 | #[cfg(all( |
| 23 | target_feature = "sse2", |
| 24 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 25 | ))] |
| 26 | mod sse2rust-analyzer cargo glam 0.27.0 f32/sse2/; |
| 27 | |
| 28 | #[cfg(all( |
| 29 | target_feature = "simd128", |
| 30 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 31 | ))] |
| 32 | mod wasm32; |
| 33 | |
| 34 | #[cfg(any( |
| 35 | not(any( |
| 36 | feature = "core-simd", |
| 37 | target_feature = "sse2", |
| 38 | target_feature = "simd128" |
| 39 | )), |
| 40 | feature = "scalar-math" |
| 41 | ))] |
| 42 | use scalar::*; |
| 43 | |
| 44 | #[cfg(all( |
| 45 | target_feature = "sse2", |
| 46 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 47 | ))] |
| 48 | use sse2rust-analyzer cargo glam 0.27.0 f32/sse2/::*; |
| 49 | |
| 50 | #[cfg(all( |
| 51 | target_feature = "simd128", |
| 52 | not(any(feature = "core-simd", feature = "scalar-math")) |
| 53 | ))] |
| 54 | use wasm32::*; |
| 55 | |
| 56 | #[cfg(all(feature = "core-simd", not(feature = "scalar-math")))] |
| 57 | use coresimd::*; |
| 58 | |
| 59 | pub use affine2rust-analyzer cargo glam 0.27.0 f32/affine2/::Affine2rust-analyzer cargo glam 0.27.0 f32/affine2/Affine2#; |
| 60 | pub use affine3arust-analyzer cargo glam 0.27.0 f32/affine3a/::Affine3Arust-analyzer cargo glam 0.27.0 f32/affine3a/Affine3A#; |
| 61 | pub use mat2rust-analyzer cargo glam 0.27.0 f32/sse2/mat2/::{mat2rust-analyzer cargo glam 0.27.0 f32/sse2/mat2/mat2()., Mat2rust-analyzer cargo glam 0.27.0 f32/sse2/mat2/Mat2#}; |
| 62 | pub use mat3rust-analyzer cargo glam 0.27.0 f32/mat3/::{mat3rust-analyzer cargo glam 0.27.0 f32/mat3/mat3()., Mat3rust-analyzer cargo glam 0.27.0 f32/mat3/Mat3#}; |
| 63 | pub use mat3arust-analyzer cargo glam 0.27.0 f32/sse2/mat3a/::{mat3arust-analyzer cargo glam 0.27.0 f32/sse2/mat3a/mat3a()., Mat3Arust-analyzer cargo glam 0.27.0 f32/sse2/mat3a/Mat3A#}; |
| 64 | pub use mat4rust-analyzer cargo glam 0.27.0 f32/sse2/mat4/::{mat4rust-analyzer cargo glam 0.27.0 f32/sse2/mat4/mat4()., Mat4rust-analyzer cargo glam 0.27.0 f32/sse2/mat4/Mat4#}; |
| 65 | pub use quatrust-analyzer cargo glam 0.27.0 f32/sse2/quat/::{quatrust-analyzer cargo glam 0.27.0 f32/sse2/quat/quat()., Quatrust-analyzer cargo glam 0.27.0 f32/sse2/quat/Quat#}; |
| 66 | pub use vec2rust-analyzer cargo glam 0.27.0 f32/vec2/::{vec2rust-analyzer cargo glam 0.27.0 f32/vec2/vec2()., Vec2rust-analyzer cargo glam 0.27.0 f32/vec2/Vec2#}; |
| 67 | pub use vec3rust-analyzer cargo glam 0.27.0 f32/vec3/::{vec3rust-analyzer cargo glam 0.27.0 f32/vec3/vec3()., Vec3rust-analyzer cargo glam 0.27.0 f32/vec3/Vec3#}; |
| 68 | pub use vec3arust-analyzer cargo glam 0.27.0 f32/sse2/vec3a/::{vec3arust-analyzer cargo glam 0.27.0 f32/sse2/vec3a/vec3a()., Vec3Arust-analyzer cargo glam 0.27.0 f32/sse2/vec3a/Vec3A#}; |
| 69 | pub use vec4rust-analyzer cargo glam 0.27.0 f32/sse2/vec4/::{vec4rust-analyzer cargo glam 0.27.0 f32/sse2/vec4/vec4()., Vec4rust-analyzer cargo glam 0.27.0 f32/sse2/vec4/Vec4#}; |
| 70 | |
| 71 | #[cfg(not(target_arch = "spirv"))] |
| 72 | mod testrust-analyzer cargo glam 0.27.0 f32/test/ { |
| 73 | use superrust-analyzer cargo glam 0.27.0 f32/::*; |
| 74 | |
| 75 | #[cfg(all(not(feature = "cuda"), feature = "scalar-math"))] |
| 76 | mod const_test_affine2rust-analyzer cargo glam 0.27.0 f32/test/const_test_affine2/ { |
| 77 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 78 | core::mem::align_of::<super::Vec2>(), |
| 79 | core::mem::align_of::<super::Affine2>() |
| 80 | ); |
| 81 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(24, core::mem::size_of::<super::Affine2>()); |
| 82 | } |
| 83 | |
| 84 | #[cfg(not(feature = "scalar-math"))] |
| 85 | mod const_test_affine2rust-analyzer cargo glam 0.27.0 f32/test/const_test_affine2/ { |
| 86 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Affine2rust-analyzer cargo glam 0.27.0 f32/affine2/Affine2#>()); |
| 87 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(32, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Affine2rust-analyzer cargo glam 0.27.0 f32/affine2/Affine2#>()); |
| 88 | } |
| 89 | |
| 90 | mod const_test_mat2rust-analyzer cargo glam 0.27.0 f32/test/const_test_mat2/ { |
| 91 | #[cfg(feature = "scalar-math")] |
| 92 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 93 | core::mem::align_of::<super::Vec2>(), |
| 94 | core::mem::align_of::<super::Mat2>() |
| 95 | ); |
| 96 | #[cfg(not(any(feature = "scalar-math", target_arch = "spirv")))] |
| 97 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat2rust-analyzer cargo glam 0.27.0 f32/sse2/mat2/Mat2#>()); |
| 98 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat2rust-analyzer cargo glam 0.27.0 f32/sse2/mat2/Mat2#>()); |
| 99 | } |
| 100 | |
| 101 | mod const_test_mat3rust-analyzer cargo glam 0.27.0 f32/test/const_test_mat3/ { |
| 102 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 103 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<f32>(), |
| 104 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat3rust-analyzer cargo glam 0.27.0 f32/mat3/Mat3#>() |
| 105 | ); |
| 106 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(36, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat3rust-analyzer cargo glam 0.27.0 f32/mat3/Mat3#>()); |
| 107 | } |
| 108 | |
| 109 | mod const_test_mat3arust-analyzer cargo glam 0.27.0 f32/test/const_test_mat3a/ { |
| 110 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat3Arust-analyzer cargo glam 0.27.0 f32/sse2/mat3a/Mat3A#>()); |
| 111 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(48, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat3Arust-analyzer cargo glam 0.27.0 f32/sse2/mat3a/Mat3A#>()); |
| 112 | } |
| 113 | |
| 114 | mod const_test_mat4rust-analyzer cargo glam 0.27.0 f32/test/const_test_mat4/ { |
| 115 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 116 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec4rust-analyzer cargo glam 0.27.0 f32/sse2/vec4/Vec4#>(), |
| 117 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat4rust-analyzer cargo glam 0.27.0 f32/sse2/mat4/Mat4#>() |
| 118 | ); |
| 119 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(64, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Mat4rust-analyzer cargo glam 0.27.0 f32/sse2/mat4/Mat4#>()); |
| 120 | } |
| 121 | |
| 122 | mod const_test_quatrust-analyzer cargo glam 0.27.0 f32/test/const_test_quat/ { |
| 123 | #[cfg(feature = "scalar-math")] |
| 124 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 125 | core::mem::align_of::<f32>(), |
| 126 | core::mem::align_of::<super::Quat>() |
| 127 | ); |
| 128 | #[cfg(not(any(feature = "scalar-math", target_arch = "spirv")))] |
| 129 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Quatrust-analyzer cargo glam 0.27.0 f32/sse2/quat/Quat#>()); |
| 130 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Quatrust-analyzer cargo glam 0.27.0 f32/sse2/quat/Quat#>()); |
| 131 | } |
| 132 | |
| 133 | mod const_test_vec2rust-analyzer cargo glam 0.27.0 f32/test/const_test_vec2/ { |
| 134 | #[cfg(not(feature = "cuda"))] |
| 135 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 136 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<f32>(), |
| 137 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec2rust-analyzer cargo glam 0.27.0 f32/vec2/Vec2#>() |
| 138 | ); |
| 139 | #[cfg(feature = "cuda")] |
| 140 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(8, core::mem::align_of::<super::Vec2>()); |
| 141 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(8, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec2rust-analyzer cargo glam 0.27.0 f32/vec2/Vec2#>()); |
| 142 | } |
| 143 | |
| 144 | mod const_test_vec3rust-analyzer cargo glam 0.27.0 f32/test/const_test_vec3/ { |
| 145 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 146 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<f32>(), |
| 147 | corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec3rust-analyzer cargo glam 0.27.0 f32/vec3/Vec3#>() |
| 148 | ); |
| 149 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(12, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec3rust-analyzer cargo glam 0.27.0 f32/vec3/Vec3#>()); |
| 150 | } |
| 151 | |
| 152 | mod const_test_vec3arust-analyzer cargo glam 0.27.0 f32/test/const_test_vec3a/ { |
| 153 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec3Arust-analyzer cargo glam 0.27.0 f32/sse2/vec3a/Vec3A#>()); |
| 154 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec3Arust-analyzer cargo glam 0.27.0 f32/sse2/vec3a/Vec3A#>()); |
| 155 | } |
| 156 | |
| 157 | mod const_test_vec4rust-analyzer cargo glam 0.27.0 f32/test/const_test_vec4/ { |
| 158 | #[cfg(all(feature = "scalar-math", not(feature = "cuda")))] |
| 159 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!( |
| 160 | core::mem::align_of::<f32>(), |
| 161 | core::mem::align_of::<super::Vec4>() |
| 162 | ); |
| 163 | #[cfg(not(feature = "scalar-math"))] |
| 164 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec4rust-analyzer cargo glam 0.27.0 f32/sse2/vec4/Vec4#>()); |
| 165 | const_assert_eqrust-analyzer cargo glam 0.27.0 macros/const_assert_eq!!(16, corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<superrust-analyzer cargo glam 0.27.0 f32/test/::Vec4rust-analyzer cargo glam 0.27.0 f32/sse2/vec4/Vec4#>()); |
| 166 | } |
| 167 | } |