We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3deff84 commit 4534005Copy full SHA for 4534005
library/std/src/f16/div_euclid.rs
@@ -68,7 +68,7 @@ fn div_ceil(exp: i16, a: u16, b: u16) -> f16 {
68
let aa = u32::from(a) << exp;
69
let bb = u32::from(b);
70
// q <= (2^27 - 2^16) / 2^10 + 1 = 2^17 - 2^6 + 1
71
- let q = ((aa - 1) / bb) as u16 + 1;
+ let q = (aa - 1) / bb + 1;
72
q as f16
73
} else {
74
// exp >= 17
0 commit comments