ptos: pool: Fix PoolComputeLevelIndex() to match formula
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -48,9 +48,9 @@ PoolComputeLevelIndex(USIZE ByteCount)
|
||||
}
|
||||
|
||||
/* Subtract the right side */
|
||||
TmpCount -= POOL_MIN_LOG2 + 1;
|
||||
TmpCount %= POOL_LEVEL_MAX;
|
||||
return TmpCount;
|
||||
Log2Sum -= POOL_MIN_LOG2 + 1;
|
||||
Log2Sum %= POOL_LEVEL_MAX;
|
||||
return Log2Sum;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user