@@ -790,6 +790,7 @@ impl FloatCore for f32 {
790790 Self :: is_infinite( self ) -> bool ;
791791 Self :: is_finite( self ) -> bool ;
792792 Self :: is_normal( self ) -> bool ;
793+ Self :: is_subnormal( self ) -> bool ;
793794 Self :: classify( self ) -> FpCategory ;
794795 Self :: is_sign_positive( self ) -> bool ;
795796 Self :: is_sign_negative( self ) -> bool ;
@@ -800,11 +801,6 @@ impl FloatCore for f32 {
800801 Self :: to_radians( self ) -> Self ;
801802 }
802803
803- #[ cfg( has_is_subnormal) ]
804- forward ! {
805- Self :: is_subnormal( self ) -> bool ;
806- }
807-
808804 #[ cfg( feature = "std" ) ]
809805 forward ! {
810806 Self :: floor( self ) -> Self ;
@@ -855,6 +851,7 @@ impl FloatCore for f64 {
855851 Self :: is_infinite( self ) -> bool ;
856852 Self :: is_finite( self ) -> bool ;
857853 Self :: is_normal( self ) -> bool ;
854+ Self :: is_subnormal( self ) -> bool ;
858855 Self :: classify( self ) -> FpCategory ;
859856 Self :: is_sign_positive( self ) -> bool ;
860857 Self :: is_sign_negative( self ) -> bool ;
@@ -865,11 +862,6 @@ impl FloatCore for f64 {
865862 Self :: to_radians( self ) -> Self ;
866863 }
867864
868- #[ cfg( has_is_subnormal) ]
869- forward ! {
870- Self :: is_subnormal( self ) -> bool ;
871- }
872-
873865 #[ cfg( feature = "std" ) ]
874866 forward ! {
875867 Self :: floor( self ) -> Self ;
@@ -1901,6 +1893,7 @@ macro_rules! float_impl_std {
19011893 Self :: is_infinite( self ) -> bool ;
19021894 Self :: is_finite( self ) -> bool ;
19031895 Self :: is_normal( self ) -> bool ;
1896+ Self :: is_subnormal( self ) -> bool ;
19041897 Self :: classify( self ) -> FpCategory ;
19051898 Self :: floor( self ) -> Self ;
19061899 Self :: ceil( self ) -> Self ;
@@ -1944,17 +1937,8 @@ macro_rules! float_impl_std {
19441937 Self :: asinh( self ) -> Self ;
19451938 Self :: acosh( self ) -> Self ;
19461939 Self :: atanh( self ) -> Self ;
1947- }
1948-
1949- #[ cfg( has_copysign) ]
1950- forward! {
19511940 Self :: copysign( self , sign: Self ) -> Self ;
19521941 }
1953-
1954- #[ cfg( has_is_subnormal) ]
1955- forward! {
1956- Self :: is_subnormal( self ) -> bool ;
1957- }
19581942 }
19591943 } ;
19601944}
@@ -1993,6 +1977,7 @@ macro_rules! float_impl_libm {
19931977 Self :: is_infinite( self ) -> bool ;
19941978 Self :: is_finite( self ) -> bool ;
19951979 Self :: is_normal( self ) -> bool ;
1980+ Self :: is_subnormal( self ) -> bool ;
19961981 Self :: classify( self ) -> FpCategory ;
19971982 Self :: is_sign_positive( self ) -> bool ;
19981983 Self :: is_sign_negative( self ) -> bool ;
@@ -2003,11 +1988,6 @@ macro_rules! float_impl_libm {
20031988 Self :: to_radians( self ) -> Self ;
20041989 }
20051990
2006- #[ cfg( has_is_subnormal) ]
2007- forward! {
2008- Self :: is_subnormal( self ) -> bool ;
2009- }
2010-
20111991 forward! {
20121992 FloatCore :: signum( self ) -> Self ;
20131993 FloatCore :: powi( self , n: i32 ) -> Self ;
0 commit comments