Home
last modified time | relevance | path

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

/frameworks/native/libs/binder/
DMemoryDealer.cpp156 static const int kMemoryAlign; member in android::SimpleBestFitAllocator
270 const int SimpleBestFitAllocator::kMemoryAlign = 32; member in android::SimpleBestFitAllocator
277 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in SimpleBestFitAllocator()
315 size = (size + kMemoryAlign-1) / kMemoryAlign; in alloc()
323 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
344 extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
352 ((free_chunk->start*kMemoryAlign)&(pagesize-1)), in alloc()
362 return (free_chunk->start)*kMemoryAlign; in alloc()
369 start = start / kMemoryAlign; in dealloc()
375 cur->start*kMemoryAlign, cur->size*kMemoryAlign); in dealloc()
[all …]