Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/base/
Darena.cc306 size_t adjusted_block_size = block_size; in AllocNewBlock() local
312 if (adjusted_block_size > adjusted_alignment) { in AllocNewBlock()
313 const uint32 excess = adjusted_block_size % adjusted_alignment; in AllocNewBlock()
314 adjusted_block_size += (excess > 0 ? adjusted_alignment - excess : 0); in AllocNewBlock()
317 size_t num_pages = ((adjusted_block_size - 1)/kPageSize) + 1; in AllocNewBlock()
318 adjusted_block_size = num_pages * kPageSize; in AllocNewBlock()
320 block->mem = AllocateAlignedBytes(adjusted_block_size, adjusted_alignment); in AllocNewBlock()
322 block->mem = AllocateBytes(adjusted_block_size); in AllocNewBlock()
324 block->size = adjusted_block_size; in AllocNewBlock()
328 << " adjusted_block_size=" << adjusted_block_size in AllocNewBlock()
[all …]
/external/tensorflow/tensorflow/core/lib/core/
Darena.cc168 size_t adjusted_block_size = block_size; in AllocNewBlock() local
169 if (adjusted_block_size > adjusted_alignment) { in AllocNewBlock()
170 const uint32 excess = adjusted_block_size % adjusted_alignment; in AllocNewBlock()
171 adjusted_block_size += (excess > 0 ? adjusted_alignment - excess : 0); in AllocNewBlock()
174 port::AlignedMalloc(adjusted_block_size, adjusted_alignment)); in AllocNewBlock()
175 block->size = adjusted_block_size; in AllocNewBlock()
177 << " adjusted_block_size=" << adjusted_block_size in AllocNewBlock()