We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3034b commit 194e645Copy full SHA for 194e645
src/float/add.rs
@@ -261,6 +261,22 @@ mod test {
261
assert_eq!(r, 1f64 + 1f64);
262
}
263
264
+ #[test]
265
+ fn test_float_tiny_plus_large() {
266
+ let a = f32::from_repr(1);
267
+ let b = f32::from_repr(4286990935);
268
+ let r = super::__addsf3(a, b);
269
+ assert_eq!(r.repr(), (a + b).repr());
270
+ }
271
+
272
273
+ fn test_double_tiny_plus_large() {
274
+ let a = f64::from_repr(1);
275
+ let b = f64::from_repr(4286990935);
276
+ let r = super::__adddf3(a, b);
277
278
279
280
#[test]
281
fn test_float_nan() {
282
let r = super::__addsf3(f32::NAN, 1.23);
0 commit comments