Searched refs:AU64 (Results 1 – 7 of 7) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | ref.rs | 1035 fn test_new_helper(mut r: Ref<&mut [u8], AU64>) { in test_new_helper() argument 1037 assert_eq!(*r, AU64(0)); in test_new_helper() 1038 assert_eq!(Ref::read(&r), AU64(0)); in test_new_helper() 1042 const VAL1: AU64 = AU64(0xFF00FF00FF00FF00); in test_new_helper() 1045 *r = AU64(0); in test_new_helper() 1051 const VAL2: AU64 = AU64(!VAL1.0); // different from `VAL1` in test_new_helper() 1060 fn test_new_helper_slice(mut r: Ref<&mut [u8], [AU64]>, typed_len: usize) { in test_new_helper_slice() argument 1062 assert_eq!(&*r, vec![AU64(0); typed_len].as_slice()); in test_new_helper_slice() 1071 const VAL1: AU64 = AU64(0xFF00FF00FF00FF00); in test_new_helper_slice() 1079 const VAL2: AU64 = AU64(!VAL1.0); // different from VAL1 in test_new_helper_slice() [all …]
|
| H A D | wrappers.rs | 858 let mut u = Unalign::new(AU64(123)); in test_unalign() 859 assert_eq!(u.get(), AU64(123)); in test_unalign() 860 assert_eq!(u.into_inner(), AU64(123)); in test_unalign() 861 assert_eq!(u.get_ptr(), <*const _>::cast::<AU64>(&u)); in test_unalign() 862 assert_eq!(u.get_mut_ptr(), <*mut _>::cast::<AU64>(&mut u)); in test_unalign() 863 u.set(AU64(321)); in test_unalign() 864 assert_eq!(u.get(), AU64(321)); in test_unalign() 867 let mut u: Align<_, AU64> = Align::new(Unalign::new(AU64(123))); in test_unalign() 868 assert_eq!(u.t.try_deref().unwrap(), &AU64(123)); in test_unalign() 869 assert_eq!(u.t.try_deref_mut().unwrap(), &mut AU64(123)); in test_unalign() [all …]
|
| H A D | lib.rs | 6527 test!(AU64, layout(8, 8, None, false)); in test_known_layout() 6777 struct KL11(NotKnownLayout<AU64>, u8); in test_known_layout_derive() 6780 .extend(DstLayout::for_type::<NotKnownLayout<AU64>>(), None) in test_known_layout_derive() 6791 struct KL11Align(NotKnownLayout<AU64>, u8); in test_known_layout_derive() 6796 .extend(DstLayout::for_type::<NotKnownLayout<AU64>>(), None) in test_known_layout_derive() 6807 struct KL11Packed(NotKnownLayout<AU64>, u8); in test_known_layout_derive() 6812 .extend(DstLayout::for_type::<NotKnownLayout<AU64>>(), repr_packed) in test_known_layout_derive() 6823 struct KL11PackedN(NotKnownLayout<AU64>, u8); in test_known_layout_derive() 6828 .extend(DstLayout::for_type::<NotKnownLayout<AU64>>(), repr_packed) in test_known_layout_derive() 7133 assert_eq!(<AU64 as TryFromBytes>::try_read_from_bytes(&bytes[..8]), Ok(AU64(0))); in test_try_from_bytes_try_read_from() [all …]
|
| H A D | macros.rs | 1420 let u = AU64(0); in test_transmute_ref() 1494 let u = AU64(0); in test_try_transmute_ref() 1550 let u = &mut AU64(0); in test_try_transmute_mut() 1609 let mut u = AU64(0); in test_transmute_mut()
|
| /linux/rust/zerocopy/src/util/ |
| H A D | macro_util.rs | 984 test!(#[repr(C)] (; AU64) => Some(0)); in test_trailing_field_offset() 985 test!(#[repr(C)] (; [AU64]) => Some(0)); in test_trailing_field_offset() 986 test!(#[repr(C)] (u8; AU64) => Some(8)); in test_trailing_field_offset() 987 test!(#[repr(C)] (u8; [AU64]) => Some(8)); in test_trailing_field_offset() 998 test!(#[repr(C)] (; Nested<u8, AU64>) => Some(0)); in test_trailing_field_offset() 999 test!(#[repr(C)] (; Nested<u8, [AU64]>) => Some(0)); in test_trailing_field_offset() 1000 test!(#[repr(C)] (u8; Nested<u8, AU64>) => Some(8)); in test_trailing_field_offset() 1001 test!(#[repr(C)] (u8; Nested<u8, [AU64]>) => Some(8)); in test_trailing_field_offset() 1164 test!(#[repr(C)] (u8, AU64) => 7); in test_struct_padding() 1196 test!((u8, AU64) => true); in test_repr_c_struct_padding() [all …]
|
| H A D | mod.rs | 872 pub(crate) struct AU64(pub(crate) u64); struct 874 impl AU64 { implementation 881 impl Display for AU64 { implementation
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | ptr.rs | 1334 use crate::{pointer::BecauseImmutable, util::testutil::AU64, FromBytes, Immutable}; 1502 test!(u8, u16, u32, u64, usize, AU64);
|