src/memory/source/tlsf.cc
static void mapping_search(size_t size, int* fli, int* sli) {
    if (size >= SMALL_BLOCK_SIZE) {
        const size_t round = (1 << (tlsf_fls_sizet(size) - SL_INDEX_COUNT_LOG2)) - 1;
        size += round;
    }
    mapping_insert(size, fli, sli);
}
/* This version rounds up to the next block size (for allocations) */
This version rounds up to the next block size (for allocations)
This version rounds up to the next block size ( for allocations )
static void mapping_search(size_t size, int* fli, int* sli) {
    if (size >= SMALL_BLOCK_SIZE) {
        const size_t round = (1 << (tlsf_fls_sizet(size) - SL_INDEX_COUNT_LOG2)) - 1;
        size += round;
    }
    mapping_insert(size, fli, sli);
}
static void mapping_search ( size_t size , int * fli , int * sli ) { if ( size >= SMALL_BLOCK_SIZE ) { const size_t round = ( 1 << ( tlsf_fls_sizet ( size ) - SL_INDEX_COUNT_LOG2 ) ) - 1 ; size += round ; } mapping_insert ( size , fli , sli ) ; }
This version rounds up to the next block size (for allocations)
This version rounds up to the next block size ( for allocations )