uucore: remove div_ceil() from sum feature

This commit is contained in:
Daniel Hofstetter
2024-11-20 09:20:41 +01:00
parent fc2f73b16c
commit cfe2c9f6da
-7
View File
@@ -207,13 +207,6 @@ impl Digest for CRC {
}
}
// This can be replaced with usize::div_ceil once it is stabilized.
// This implementation approach is optimized for when `b` is a constant,
// particularly a power of two.
pub fn div_ceil(a: usize, b: usize) -> usize {
(a + b - 1) / b
}
pub struct BSD {
state: u16,
}