Searched refs:kMemoryAlign (Results 1 – 1 of 1) sorted by relevance
58 static size_t getAllocationAlignment() { return kMemoryAlign; } in getAllocationAlignment()78 static const int kMemoryAlign; member in android::hardware::SimpleBestFitAllocator107 const int SimpleBestFitAllocator::kMemoryAlign = 32; member in android::hardware::SimpleBestFitAllocator113 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in SimpleBestFitAllocator()155 size = (size + kMemoryAlign - 1) / kMemoryAlign; in alloc()162 if (flags & PAGE_ALIGNED) extra = (-cur->start & ((pagesize / kMemoryAlign) - 1)); in alloc()182 extra = (-free_chunk->start & ((pagesize / kMemoryAlign) - 1)); in alloc()190 (flags & PAGE_ALIGNED) && ((free_chunk->start * kMemoryAlign) & (pagesize - 1)), in alloc()199 return (free_chunk->start) * kMemoryAlign; in alloc()205 start = start / kMemoryAlign; in dealloc()[all …]