1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

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

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,
}