Lines Matching refs:alignment
75 void* debug_memalign(size_t alignment, size_t bytes);
79 int debug_posix_memalign(void** memptr, size_t alignment, size_t size);
383 void* debug_memalign(size_t alignment, size_t bytes) { in debug_memalign() argument
385 return g_dispatch->memalign(alignment, bytes); in debug_memalign()
400 if (!powerof2(alignment)) { in debug_memalign()
401 alignment = BIONIC_ROUND_UP_POWER_OF_2(alignment); in debug_memalign()
405 if (alignment < MINIMUM_ALIGNMENT_BYTES) { in debug_memalign()
406 alignment = MINIMUM_ALIGNMENT_BYTES; in debug_memalign()
412 size_t real_size = alignment + bytes + g_debug->extra_bytes(); in debug_memalign()
426 value += (-value % alignment); in debug_memalign()
437 pointer = g_dispatch->memalign(alignment, real_size); in debug_memalign()
587 int debug_posix_memalign(void** memptr, size_t alignment, size_t size) { in debug_posix_memalign() argument
589 return g_dispatch->posix_memalign(memptr, alignment, size); in debug_posix_memalign()
592 if (!powerof2(alignment)) { in debug_posix_memalign()
596 *memptr = debug_memalign(alignment, size); in debug_posix_memalign()