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:
parent
fc2f73b16c
commit
cfe2c9f6da
1 changed files with 0 additions and 7 deletions
|
@ -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 {
|
pub struct BSD {
|
||||||
state: u16,
|
state: u16,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue