Home
last modified time | relevance | path

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

/third_party/rust/crates/bindgen/bindgen/codegen/
Dstruct_layout.rs32 pub fn align_to(size: usize, align: usize) -> usize { in align_to() function
64 assert_eq!(align_to(1, 1), 1); in test_align_to()
65 assert_eq!(align_to(1, 2), 2); in test_align_to()
66 assert_eq!(align_to(1, 4), 4); in test_align_to()
67 assert_eq!(align_to(5, 1), 5); in test_align_to()
68 assert_eq!(align_to(17, 4), 20); in test_align_to()
184 align_to(layout.size, layout.align) * len; in saw_field()
384 align_to(self.latest_offset, layout.align) - self.latest_offset in padding_bytes()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_resource_texture.c82 align_nblocksx(enum pipe_format format, unsigned width, unsigned align_to) in align_nblocksx() argument
84 return align(util_format_get_nblocksx(format, width), align_to); in align_nblocksx()
88 align_nblocksy(enum pipe_format format, unsigned width, unsigned align_to) in align_nblocksy() argument
90 return align(util_format_get_nblocksy(format, width), align_to); in align_nblocksy()
/third_party/rust/crates/bindgen/bindgen/ir/
Dcomp.rs13 use crate::codegen::struct_layout::{align_to, bytes_from_bits_pow2};
589 let size = align_to(unit_size_in_bits, 8) / 8; in bitfields_to_allocation_units()
625 align_to(unit_size_in_bits, unit_align * 8); in bitfields_to_allocation_units()
645 offset = align_to(offset, bitfield_align * 8); in bitfields_to_allocation_units()
676 let data_size = align_to(unit_size_in_bits, bitfield_align * 8); in bitfields_to_allocation_units()
/third_party/f2fs-tools/tools/sg_write_buffer/include/
Dsg_lib.h575 uint8_t * sg_memalign(uint32_t num_bytes, uint32_t align_to,
/third_party/vixl/src/aarch64/
Dsimulator-aarch64.h127 size_t align_to = 1 << align_log2_; in Allocate() local
128 size_t l = AlignUp(limit_guard_size_, align_to); in Allocate()
129 size_t u = AlignUp(usable_size_, align_to); in Allocate()
130 size_t b = AlignUp(base_guard_size_, align_to); in Allocate()
134 size_t alloc_size = (align_to - 1) + size; in Allocate()
138 reinterpret_cast<char*>(std::align(align_to, size, data, alloc_size)); in Allocate()
/third_party/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()
/third_party/tzdata/
Dzic.c507 align_to(ptrdiff_t size, ptrdiff_t alignment) in align_to() function
2355 zic_t *ats = emalloc(align_to(size_product(timecnt + !timecnt, in writezone()