@@ -2,31 +2,24 @@ use crate::f64::consts;
22use crate :: num:: { FpCategory as Fp , * } ;
33
44/// Smallest number
5- #[ allow( dead_code) ] // unused on x86
65const TINY_BITS : u64 = 0x1 ;
76
87/// Next smallest number
9- #[ allow( dead_code) ] // unused on x86
108const TINY_UP_BITS : u64 = 0x2 ;
119
1210/// Exponent = 0b11...10, Sifnificand 0b1111..10. Min val > 0
13- #[ allow( dead_code) ] // unused on x86
1411const MAX_DOWN_BITS : u64 = 0x7fef_ffff_ffff_fffe ;
1512
1613/// Zeroed exponent, full significant
17- #[ allow( dead_code) ] // unused on x86
1814const LARGEST_SUBNORMAL_BITS : u64 = 0x000f_ffff_ffff_ffff ;
1915
2016/// Exponent = 0b1, zeroed significand
21- #[ allow( dead_code) ] // unused on x86
2217const SMALLEST_NORMAL_BITS : u64 = 0x0010_0000_0000_0000 ;
2318
2419/// First pattern over the mantissa
25- #[ allow( dead_code) ] // unused on x86
2620const NAN_MASK1 : u64 = 0x000a_aaaa_aaaa_aaaa ;
2721
2822/// Second pattern over the mantissa
29- #[ allow( dead_code) ] // unused on x86
3023const NAN_MASK2 : u64 = 0x0005_5555_5555_5555 ;
3124
3225#[ allow( unused_macros) ]
@@ -343,9 +336,6 @@ fn test_is_sign_negative() {
343336 assert ! ( ( -f64 :: NAN ) . is_sign_negative( ) ) ;
344337}
345338
346- // Ignore test on x87 floating point, these platforms do not guarantee NaN
347- // payloads are preserved and flush denormals to zero, failing the tests.
348- #[ cfg( not( target_arch = "x86" ) ) ]
349339#[ test]
350340fn test_next_up ( ) {
351341 let tiny = f64:: from_bits ( TINY_BITS ) ;
@@ -375,9 +365,6 @@ fn test_next_up() {
375365 assert_f64_biteq ! ( nan2. next_up( ) , nan2) ;
376366}
377367
378- // Ignore test on x87 floating point, these platforms do not guarantee NaN
379- // payloads are preserved and flush denormals to zero, failing the tests.
380- #[ cfg( not( target_arch = "x86" ) ) ]
381368#[ test]
382369fn test_next_down ( ) {
383370 let tiny = f64:: from_bits ( TINY_BITS ) ;
0 commit comments