@@ -790,6 +790,7 @@ impl FloatCore for f32 {
790
790
Self :: is_infinite( self ) -> bool ;
791
791
Self :: is_finite( self ) -> bool ;
792
792
Self :: is_normal( self ) -> bool ;
793
+ Self :: is_subnormal( self ) -> bool ;
793
794
Self :: classify( self ) -> FpCategory ;
794
795
Self :: is_sign_positive( self ) -> bool ;
795
796
Self :: is_sign_negative( self ) -> bool ;
@@ -800,11 +801,6 @@ impl FloatCore for f32 {
800
801
Self :: to_radians( self ) -> Self ;
801
802
}
802
803
803
- #[ cfg( has_is_subnormal) ]
804
- forward ! {
805
- Self :: is_subnormal( self ) -> bool ;
806
- }
807
-
808
804
#[ cfg( feature = "std" ) ]
809
805
forward ! {
810
806
Self :: floor( self ) -> Self ;
@@ -855,6 +851,7 @@ impl FloatCore for f64 {
855
851
Self :: is_infinite( self ) -> bool ;
856
852
Self :: is_finite( self ) -> bool ;
857
853
Self :: is_normal( self ) -> bool ;
854
+ Self :: is_subnormal( self ) -> bool ;
858
855
Self :: classify( self ) -> FpCategory ;
859
856
Self :: is_sign_positive( self ) -> bool ;
860
857
Self :: is_sign_negative( self ) -> bool ;
@@ -865,11 +862,6 @@ impl FloatCore for f64 {
865
862
Self :: to_radians( self ) -> Self ;
866
863
}
867
864
868
- #[ cfg( has_is_subnormal) ]
869
- forward ! {
870
- Self :: is_subnormal( self ) -> bool ;
871
- }
872
-
873
865
#[ cfg( feature = "std" ) ]
874
866
forward ! {
875
867
Self :: floor( self ) -> Self ;
@@ -1901,6 +1893,7 @@ macro_rules! float_impl_std {
1901
1893
Self :: is_infinite( self ) -> bool ;
1902
1894
Self :: is_finite( self ) -> bool ;
1903
1895
Self :: is_normal( self ) -> bool ;
1896
+ Self :: is_subnormal( self ) -> bool ;
1904
1897
Self :: classify( self ) -> FpCategory ;
1905
1898
Self :: floor( self ) -> Self ;
1906
1899
Self :: ceil( self ) -> Self ;
@@ -1946,11 +1939,6 @@ macro_rules! float_impl_std {
1946
1939
Self :: atanh( self ) -> Self ;
1947
1940
Self :: copysign( self , sign: Self ) -> Self ;
1948
1941
}
1949
-
1950
- #[ cfg( has_is_subnormal) ]
1951
- forward! {
1952
- Self :: is_subnormal( self ) -> bool ;
1953
- }
1954
1942
}
1955
1943
} ;
1956
1944
}
@@ -1989,6 +1977,7 @@ macro_rules! float_impl_libm {
1989
1977
Self :: is_infinite( self ) -> bool ;
1990
1978
Self :: is_finite( self ) -> bool ;
1991
1979
Self :: is_normal( self ) -> bool ;
1980
+ Self :: is_subnormal( self ) -> bool ;
1992
1981
Self :: classify( self ) -> FpCategory ;
1993
1982
Self :: is_sign_positive( self ) -> bool ;
1994
1983
Self :: is_sign_negative( self ) -> bool ;
@@ -1999,11 +1988,6 @@ macro_rules! float_impl_libm {
1999
1988
Self :: to_radians( self ) -> Self ;
2000
1989
}
2001
1990
2002
- #[ cfg( has_is_subnormal) ]
2003
- forward! {
2004
- Self :: is_subnormal( self ) -> bool ;
2005
- }
2006
-
2007
1991
forward! {
2008
1992
FloatCore :: signum( self ) -> Self ;
2009
1993
FloatCore :: powi( self , n: i32 ) -> Self ;
0 commit comments