Home
last modified time | relevance | path

Searched refs:align_to (Results 1 - 5 of 5) sorted by relevance

/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dstruct_layout.rs32 pub fn align_to(size: usize, align: usize) -> usize { in align_to() functions
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/
H A 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/
H A 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/vixl/src/aarch64/
H A Dsimulator-aarch64.h139 size_t align_to = 1 << align_log2_; in Allocate() local
140 size_t l = AlignUp(limit_guard_size_, align_to); in Allocate()
141 size_t u = AlignUp(usable_size_, align_to); in Allocate()
142 size_t b = AlignUp(base_guard_size_, align_to); in Allocate()
146 size_t alloc_size = (align_to - 1) + size; in Allocate()
150 reinterpret_cast<char*>(std::align(align_to, size, data, alloc_size)); in Allocate()
/third_party/tzdata/
H A Dzic.c503 align_to(ptrdiff_t size, ptrdiff_t alignment) in align_to() function
2389 zic_t *ats = emalloc(align_to(size_product(timecnt + !timecnt, in writezone()

Completed in 15 milliseconds