@@ -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 ;
@@ -1946,11 +1939,6 @@ macro_rules! float_impl_std {
19461939 Self :: atanh( self ) -> Self ;
19471940 Self :: copysign( self , sign: Self ) -> Self ;
19481941 }
1949-
1950- #[ cfg( has_is_subnormal) ]
1951- forward! {
1952- Self :: is_subnormal( self ) -> bool ;
1953- }
19541942 }
19551943 } ;
19561944}
@@ -1989,6 +1977,7 @@ macro_rules! float_impl_libm {
19891977 Self :: is_infinite( self ) -> bool ;
19901978 Self :: is_finite( self ) -> bool ;
19911979 Self :: is_normal( self ) -> bool ;
1980+ Self :: is_subnormal( self ) -> bool ;
19921981 Self :: classify( self ) -> FpCategory ;
19931982 Self :: is_sign_positive( self ) -> bool ;
19941983 Self :: is_sign_negative( self ) -> bool ;
@@ -1999,11 +1988,6 @@ macro_rules! float_impl_libm {
19991988 Self :: to_radians( self ) -> Self ;
20001989 }
20011990
2002- #[ cfg( has_is_subnormal) ]
2003- forward! {
2004- Self :: is_subnormal( self ) -> bool ;
2005- }
2006-
20071991 forward! {
20081992 FloatCore :: signum( self ) -> Self ;
20091993 FloatCore :: powi( self , n: i32 ) -> Self ;
0 commit comments