Skip to content

Commit

Permalink
Add FIXME related to NaN inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtilda committed Jun 27, 2024
1 parent e924310 commit ea713d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2471,6 +2471,8 @@ mod tests {
check(sign_f * f32::MAX, 0xffffff, 104, sign);
check(sign_f * f32::INFINITY, 0x800000, 105, sign);
}
// FIXME: Unclear if we should be able to recover NaN inputs
// check(f32::NAN, 0xc00000, 105, 1);
}

#[test]
Expand All @@ -2495,6 +2497,8 @@ mod tests {
check(sign_f * f64::MAX, 0x1fffffffffffff, 971, sign);
check(sign_f * f64::INFINITY, 0x10000000000000, 972, sign);
}
// FIXME: Unclear if we should be able to recover NaN inputs
// check(f64::NAN, 0x18000000000000, 972, 1);
}

#[test]
Expand Down

0 comments on commit ea713d5

Please sign in to comment.