ptos: pool: Fix PoolComputeLevelIndex() to match formula

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-14 22:02:23 +00:00
parent 1601bfe87b
commit b7edf8341a
+3 -3
View File
@@ -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;
}
/*