@@ -923,7 +923,6 @@ impl FloatCore for f64 {
923923 Self :: is_infinite( self ) -> bool ;
924924 Self :: is_finite( self ) -> bool ;
925925 Self :: is_normal( self ) -> bool ;
926- Self :: is_subnormal( self ) -> bool ;
927926 Self :: classify( self ) -> FpCategory ;
928927 Self :: floor( self ) -> Self ;
929928 Self :: ceil( self ) -> Self ;
@@ -942,6 +941,11 @@ impl FloatCore for f64 {
942941 Self :: to_radians( self ) -> Self ;
943942 }
944943
944+ #[ cfg( has_is_subnormal) ]
945+ forward ! {
946+ Self :: is_subnormal( self ) -> bool ;
947+ }
948+
945949 #[ cfg( all( not( feature = "std" ) , feature = "libm" ) ) ]
946950 forward ! {
947951 libm:: floor as floor( self ) -> Self ;
@@ -1960,7 +1964,6 @@ macro_rules! float_impl_std {
19601964 Self :: is_infinite( self ) -> bool ;
19611965 Self :: is_finite( self ) -> bool ;
19621966 Self :: is_normal( self ) -> bool ;
1963- Self :: is_subnormal( self ) -> bool ;
19641967 Self :: classify( self ) -> FpCategory ;
19651968 Self :: floor( self ) -> Self ;
19661969 Self :: ceil( self ) -> Self ;
@@ -2007,9 +2010,13 @@ macro_rules! float_impl_std {
20072010 }
20082011
20092012 #[ cfg( has_copysign) ]
2010- #[ inline]
2011- fn copysign( self , sign: Self ) -> Self {
2012- Self :: copysign( self , sign)
2013+ forward! {
2014+ Self :: copysign( self , sign: Self ) -> Self ;
2015+ }
2016+
2017+ #[ cfg( has_is_subnormal) ]
2018+ forward! {
2019+ Self :: is_subnormal( self ) -> bool ;
20132020 }
20142021 }
20152022 } ;
0 commit comments