@@ -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 ;
@@ -1944,17 +1937,8 @@ macro_rules! float_impl_std {
1944
1937
Self :: asinh( self ) -> Self ;
1945
1938
Self :: acosh( self ) -> Self ;
1946
1939
Self :: atanh( self ) -> Self ;
1947
- }
1948
-
1949
- #[ cfg( has_copysign) ]
1950
- forward! {
1951
1940
Self :: copysign( self , sign: Self ) -> Self ;
1952
1941
}
1953
-
1954
- #[ cfg( has_is_subnormal) ]
1955
- forward! {
1956
- Self :: is_subnormal( self ) -> bool ;
1957
- }
1958
1942
}
1959
1943
} ;
1960
1944
}
@@ -1993,6 +1977,7 @@ macro_rules! float_impl_libm {
1993
1977
Self :: is_infinite( self ) -> bool ;
1994
1978
Self :: is_finite( self ) -> bool ;
1995
1979
Self :: is_normal( self ) -> bool ;
1980
+ Self :: is_subnormal( self ) -> bool ;
1996
1981
Self :: classify( self ) -> FpCategory ;
1997
1982
Self :: is_sign_positive( self ) -> bool ;
1998
1983
Self :: is_sign_negative( self ) -> bool ;
@@ -2003,11 +1988,6 @@ macro_rules! float_impl_libm {
2003
1988
Self :: to_radians( self ) -> Self ;
2004
1989
}
2005
1990
2006
- #[ cfg( has_is_subnormal) ]
2007
- forward! {
2008
- Self :: is_subnormal( self ) -> bool ;
2009
- }
2010
-
2011
1991
forward! {
2012
1992
FloatCore :: signum( self ) -> Self ;
2013
1993
FloatCore :: powi( self , n: i32 ) -> Self ;
0 commit comments