mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uucore: remove div_ceil() from sum feature
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user