/external/rust/crates/bindgen/src/codegen/ |
D | struct_layout.rs | 31 pub fn align_to(size: usize, align: usize) -> usize { in align_to() function 63 assert_eq!(align_to(1, 1), 1); in test_align_to() 64 assert_eq!(align_to(1, 2), 2); in test_align_to() 65 assert_eq!(align_to(1, 4), 4); in test_align_to() 66 assert_eq!(align_to(5, 1), 5); in test_align_to() 67 assert_eq!(align_to(17, 4), 20); in test_align_to() 178 align_to(layout.size, layout.align) * len; in saw_field() 341 align_to(self.latest_offset, layout.align) - self.latest_offset in padding_bytes()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | cpu_function_runtime.cc | 52 size_t align_to(size_t n, size_t align) { in align_to() function 67 total += align_to(buffer_infos[i].size(), kAlign); in AlignedBufferBytes() 94 pos += align_to(buffer_infos[i].size(), kAlign); in MallocContiguousBuffers()
|
/external/crosvm/data_model/src/ |
D | lib.rs | 43 match unsafe { data.align_to::<Self>() } { in from_slice() 151 let (pre, _, _) = unsafe { v.align_to::<$T>() };
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tcp_mmap.c | 123 #define ALIGN_UP(x, align_to) (((x) + ((align_to)-1)) & ~((align_to)-1)) argument
|
/external/arm-trusted-firmware/tools/sptool/ |
D | sptool.c | 42 static unsigned int align_to(unsigned int address, unsigned int boundary) in align_to() function 242 file_ptr = align_to((sp->pm_offset + sp->pm_size), PAGE_SIZE); in output_write()
|
/external/rust/crates/crc32fast/src/specialized/ |
D | aarch64.rs | 42 let (pre_quad, quads, post_quad) = data.align_to::<u64>(); in calculate()
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | protection_keys.c | 55 #define ALIGN_UP(x, align_to) (((x) + ((align_to)-1)) & ~((align_to)-1)) argument 56 #define ALIGN_DOWN(x, align_to) ((x) & ~((align_to)-1)) argument
|
/external/rust/crates/bindgen/src/ir/ |
D | comp.rs | 13 use crate::codegen::struct_layout::{align_to, bytes_from_bits_pow2}; 591 let size = align_to(unit_size_in_bits, 8) / 8; in bitfields_to_allocation_units() 627 align_to(unit_size_in_bits, unit_align * 8); in bitfields_to_allocation_units() 649 offset = align_to(offset, bitfield_align * 8); in bitfields_to_allocation_units() 681 let data_size = align_to(unit_size_in_bits, bitfield_align * 8); in bitfields_to_allocation_units()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_resource_texture.c | 93 align_nblocksx(enum pipe_format format, unsigned width, unsigned align_to) in align_nblocksx() argument 95 return align(util_format_get_nblocksx(format, width), align_to); in align_nblocksx() 99 align_nblocksy(enum pipe_format format, unsigned width, unsigned align_to) in align_nblocksy() argument 101 return align(util_format_get_nblocksy(format, width), align_to); in align_nblocksy()
|
/external/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_lib.h | 575 uint8_t * sg_memalign(uint32_t num_bytes, uint32_t align_to,
|
/external/rust/crates/ahash/src/ |
D | hash_quality_test.rs | 75 let (begin, middle, end) = combination.align_to::<u8>(); in test_no_full_collisions()
|
/external/vixl/src/aarch64/ |
D | simulator-aarch64.h | 126 size_t align_to = 1 << align_log2_; in Allocate() local 127 size_t l = AlignUp(limit_guard_size_, align_to); in Allocate() 128 size_t u = AlignUp(usable_size_, align_to); in Allocate() 129 size_t b = AlignUp(base_guard_size_, align_to); in Allocate() 133 size_t alloc_size = (align_to - 1) + size; in Allocate() 137 reinterpret_cast<char*>(std::align(align_to, size, data, alloc_size)); in Allocate()
|
/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_lib.c | 3391 sg_memalign(uint32_t num_bytes, uint32_t align_to, uint8_t ** buff_to_free, in sg_memalign() argument 3399 psz = (align_to > 0) ? align_to : sg_get_page_size(); in sg_memalign()
|
/external/rust/crates/vmm_vhost/src/vhost_user/ |
D | master.rs | 193 let (_, payload, _) = unsafe { ctx.regions.align_to::<u8>() }; in set_mem_table()
|