Format with rustfmt 2021-09-29
This commit is contained in:
parent
8f58e3f645
commit
dd3f590c41
|
@ -32,8 +32,7 @@ pub fn udivmod_1e19(n: u128) -> (u128, u64) {
|
||||||
let quot = if n < 1 << 83 {
|
let quot = if n < 1 << 83 {
|
||||||
((n >> 19) as u64 / (d >> 19)) as u128
|
((n >> 19) as u64 / (d >> 19)) as u128
|
||||||
} else {
|
} else {
|
||||||
let factor =
|
let factor = (8507059173023461586_u64 as u128) << 64 | 10779635027931437427 as u128;
|
||||||
(8507059173023461586_u64 as u128) << 64 | 10779635027931437427 as u128;
|
|
||||||
u128_mulhi(n, factor) >> 62
|
u128_mulhi(n, factor) >> 62
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue