Home
last modified time | relevance | path

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

/external/vixl/src/
Dutils-vixl.h476 uint64_t pointer_raw = (uint64_t)pointer; in AlignUp() local
477 VIXL_STATIC_ASSERT(sizeof(pointer) <= sizeof(pointer_raw)); in AlignUp()
479 size_t align_step = (alignment - pointer_raw) % alignment; in AlignUp()
480 VIXL_ASSERT((pointer_raw + align_step) % alignment == 0); in AlignUp()
482 T result = (T)(pointer_raw + align_step); in AlignUp()
495 uint64_t pointer_raw = (uint64_t)pointer; in AlignDown() local
496 VIXL_STATIC_ASSERT(sizeof(pointer) <= sizeof(pointer_raw)); in AlignDown()
498 size_t align_step = pointer_raw % alignment; in AlignDown()
499 VIXL_ASSERT((pointer_raw - align_step) % alignment == 0); in AlignDown()
501 return (T)(pointer_raw - align_step); in AlignDown()