Searched refs:bytes_from_bits_pow2 (Results 1 – 2 of 2) sorted by relevance
45 pub fn bytes_from_bits_pow2(mut n: usize) -> usize { in bytes_from_bits_pow2() function72 assert_eq!(bytes_from_bits_pow2(0), 0); in test_bytes_from_bits_pow2()74 assert_eq!(bytes_from_bits_pow2(i), 1); in test_bytes_from_bits_pow2()77 assert_eq!(bytes_from_bits_pow2(i), 2); in test_bytes_from_bits_pow2()80 assert_eq!(bytes_from_bits_pow2(i), 4); in test_bytes_from_bits_pow2()
13 use crate::codegen::struct_layout::{align_to, bytes_from_bits_pow2};589 bytes_from_bits_pow2(unit_align_in_bits) in bitfields_to_allocation_units()