Lines Matching refs:alignment
74 block_alloc(size_t size, size_t alignment, uint32 flags)
76 if (alignment > kMinObjectAlignment) {
77 // Make size >= alignment and a power of two. This is sufficient, since
80 // in the kernel and always with power of two size == alignment anyway.
81 ASSERT((alignment & (alignment - 1)) == 0);
82 while (alignment < size)
83 alignment <<= 1;
84 size = alignment;
175 size_t alignment = (size & (size - 1)) == 0 ? size : 0;
182 sBlockCaches[index] = create_object_cache_etc(name, size, alignment, 0,
209 memalign(size_t alignment, size_t size)
211 return block_alloc(size, alignment, 0);
216 memalign_etc(size_t alignment, size_t size, uint32 flags)
218 return block_alloc(size, alignment, flags & CACHE_ALLOC_FLAGS);
223 posix_memalign(void** _pointer, size_t alignment, size_t size)
225 if ((alignment & (sizeof(void*) - 1)) != 0 || _pointer == NULL)
227 *_pointer = block_alloc(size, alignment, 0);