Lines Matching refs:kMemoryAlign
138 static size_t getAllocationAlignment() { return kMemoryAlign; } in getAllocationAlignment()
158 static const int kMemoryAlign; member in android::SimpleBestFitAllocator
276 const int SimpleBestFitAllocator::kMemoryAlign = 32; member in android::SimpleBestFitAllocator
283 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in SimpleBestFitAllocator()
329 size = (size + kMemoryAlign-1) / kMemoryAlign; in alloc()
337 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
358 extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
366 ((free_chunk->start*kMemoryAlign)&(pagesize-1)), in alloc()
376 return (free_chunk->start)*kMemoryAlign; in alloc()
383 start = start / kMemoryAlign; in dealloc()
389 cur->start*kMemoryAlign, cur->size*kMemoryAlign); in dealloc()
413 freed->start * kMemoryAlign, freed->size * kMemoryAlign); in dealloc()
463 i, cur, int(cur->start*kMemoryAlign), in dump_l()
464 int(cur->size*kMemoryAlign), in dump_l()
471 size += cur->size*kMemoryAlign; in dump_l()