Home
last modified time | relevance | path

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

/external/vixl/src/vixl/
Dutils.h260 uint64_t pointer_raw = (uint64_t)pointer; in AlignUp() local
261 VIXL_STATIC_ASSERT(sizeof(pointer) <= sizeof(pointer_raw)); in AlignUp()
263 size_t align_step = (alignment - pointer_raw) % alignment; in AlignUp()
264 VIXL_ASSERT((pointer_raw + align_step) % alignment == 0); in AlignUp()
266 return (T)(pointer_raw + align_step); in AlignUp()
275 uint64_t pointer_raw = (uint64_t)pointer; in AlignDown() local
276 VIXL_STATIC_ASSERT(sizeof(pointer) <= sizeof(pointer_raw)); in AlignDown()
278 size_t align_step = pointer_raw % alignment; in AlignDown()
279 VIXL_ASSERT((pointer_raw - align_step) % alignment == 0); in AlignDown()
281 return (T)(pointer_raw - align_step); in AlignDown()