Lines Matching full:alignment
39 int elf_malloc(void **memptr, size_t alignment, size_t size) { in elf_malloc() argument
43 if ((alignment & (alignment - 1)) != 0) in elf_malloc()
45 if (alignment % sizeof(void*) != 0) in elf_malloc()
46 alignment = sizeof(void*); in elf_malloc()
48 start_addr = malloc(size + (alignment > sizeof(struct memalign_info) ? in elf_malloc()
49 alignment : sizeof(struct memalign_info))); in elf_malloc()
56 ((unsigned long)start_addr % alignment) + in elf_malloc()
57 alignment - sizeof(struct memalign_info)); in elf_malloc()
75 int elf_malloc(void **memptr, size_t alignment, size_t size) { in elf_malloc() argument
76 if ((alignment & (alignment - 1)) != 0) in elf_malloc()
79 if (alignment % sizeof(void*) != 0) in elf_malloc()
80 alignment = sizeof(void*); in elf_malloc()
82 return posix_memalign(memptr, alignment, size); in elf_malloc()