Debian Codegraph @

debian/missing-sources/glam-0.24.2/src/i32.rs

raw symbols SCIP
1 mod ivec2;
2 mod ivec3;
3 mod ivec4;
4
5 pub use ivec2::{ivec2, IVec2};
6 pub use ivec3::{ivec3, IVec3};
7 pub use ivec4::{ivec4, IVec4};
8
9 #[cfg(not(target_arch = "spirv"))]
10 mod test {
11 use super::*;
12
13 mod const_test_ivec2 {
14 #[cfg(not(feature = "cuda"))]
15 const_assert_eq!(
16 core::mem::align_of::<i32>(),
17 core::mem::align_of::<super::IVec2>()
18 );
19 #[cfg(feature = "cuda")]
20 const_assert_eq!(8, core::mem::align_of::<super::IVec2>());
21 const_assert_eq!(8, core::mem::size_of::<super::IVec2>());
22 }
23
24 mod const_test_ivec3 {
25 const_assert_eq!(
26 core::mem::align_of::<i32>(),
27 core::mem::align_of::<super::IVec3>()
28 );
29 const_assert_eq!(12, core::mem::size_of::<super::IVec3>());
30 }
31
32 mod const_test_ivec4 {
33 #[cfg(not(feature = "cuda"))]
34 const_assert_eq!(
35 core::mem::align_of::<i32>(),
36 core::mem::align_of::<super::IVec4>()
37 );
38 #[cfg(feature = "cuda")]
39 const_assert_eq!(16, core::mem::align_of::<super::IVec4>());
40 const_assert_eq!(16, core::mem::size_of::<super::IVec4>());
41 }
42 }