Skip to content

Commit

Permalink
wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Oct 29, 2024
1 parent f358fe2 commit 3e7cd0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/hypot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ fn cr_hypot(mut x: f64, mut y: f64) -> f64 {
}

let off: i64 = (0x3ff_i64 << 52) - (xd & emsk) as i64;
xd += off as u64;
yd += off as u64;
xd = xd.wrapping_mul(off as u64);
yd = yd.wrapping_mul(off as u64);
x = f64::from_bits(xd);
y = f64::from_bits(yd);
let x2: f64 = x * x;
Expand Down

0 comments on commit 3e7cd0b

Please sign in to comment.