Home
last modified time | relevance | path

Searched refs:align_to (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/bindgen/src/codegen/
Dstruct_layout.rs31 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/
Dcpu_function_runtime.cc52 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/
Dlib.rs43 match unsafe { data.align_to::<Self>() } { in from_slice()
151 let (pre, _, _) = unsafe { v.align_to::<$T>() };
/external/linux-kselftest/tools/testing/selftests/net/
Dtcp_mmap.c123 #define ALIGN_UP(x, align_to) (((x) + ((align_to)-1)) & ~((align_to)-1)) argument
/external/arm-trusted-firmware/tools/sptool/
Dsptool.c42 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/
Daarch64.rs42 let (pre_quad, quads, post_quad) = data.align_to::<u64>(); in calculate()
/external/linux-kselftest/tools/testing/selftests/x86/
Dprotection_keys.c55 #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/
Dcomp.rs13 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/
Di915_resource_texture.c93 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/
Dsg_lib.h575 uint8_t * sg_memalign(uint32_t num_bytes, uint32_t align_to,
/external/rust/crates/ahash/src/
Dhash_quality_test.rs75 let (begin, middle, end) = combination.align_to::<u8>(); in test_no_full_collisions()
/external/vixl/src/aarch64/
Dsimulator-aarch64.h126 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/
Dsg_lib.c3391 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/
Dmaster.rs193 let (_, payload, _) = unsafe { ctx.regions.align_to::<u8>() }; in set_mem_table()