This commit is contained in:
David Tolnay
2019-06-11 14:06:54 -07:00
parent 81e31b67f4
commit ac5ad59745
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ C, [https://github.com/ulfjack/ryu][upstream].
uses nothing from the Rust standard library so is usable from no_std crates.*
[paper]: https://dl.acm.org/citation.cfm?id=3192369
[upstream]: https://github.com/ulfjack/ryu/tree/00ecce8c59ab9bdb7b8f6c3dc54ee467cfab6b43
[upstream]: https://github.com/ulfjack/ryu/tree/159ce150fa94e0229f3e02ecc6f4243f21388c0b
```toml
[dependencies]
+1 -1
View File
@@ -263,7 +263,7 @@ pub fn d2d(ieee_mantissa: u64, ieee_exponent: u32) -> FloatingDecimal64 {
// <=> ntz(mv) >= q - 1 (e2 is negative and -e2 >= q)
// <=> (mv & ((1 << (q - 1)) - 1)) == 0
// We also need to make sure that the left shift does not overflow.
vr_is_trailing_zeros = multiple_of_power_of_2(mv, q - 1);
vr_is_trailing_zeros = multiple_of_power_of_2(mv, q);
}
}