Skip to content

Commit

Permalink
Format with rustfmt 2020-04-21
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 31, 2020
1 parent 61480f1 commit dacbf3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/s2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ pub fn s2d(buffer: &[u8]) -> Result<f64, Error> {
// requires that the largest power of 2 that divides m10 + e10 is
// greater than e2. If e2 is less than e10, then the result must be
// exact. Otherwise we use the existing multiple_of_power_of_2 function.
trailing_zeros = e2 < e10 || e2 - e10 < 64 && multiple_of_power_of_2(m10, (e2 - e10) as u32);
trailing_zeros =
e2 < e10 || e2 - e10 < 64 && multiple_of_power_of_2(m10, (e2 - e10) as u32);
} else {
e2 = floor_log2(m10)
.wrapping_add(e10 as u32)
Expand Down

0 comments on commit dacbf3a

Please sign in to comment.