f16::is_sign_{positive,negative} were feature-gated on f128

This commit is contained in:
Trevor Spiteri 2024-05-06 23:36:47 +02:00
parent 31110152e2
commit fac0a74450

View File

@ -226,7 +226,7 @@ pub const fn is_nan(self) -> bool {
/// See [explanation of NaN as a special value](f32) for more info.
#[inline]
#[must_use]
#[unstable(feature = "f128", issue = "116909")]
#[unstable(feature = "f16", issue = "116909")]
pub fn is_sign_positive(self) -> bool {
!self.is_sign_negative()
}
@ -239,7 +239,7 @@ pub fn is_sign_positive(self) -> bool {
/// See [explanation of NaN as a special value](f32) for more info.
#[inline]
#[must_use]
#[unstable(feature = "f128", issue = "116909")]
#[unstable(feature = "f16", issue = "116909")]
pub fn is_sign_negative(self) -> bool {
// IEEE754 says: isSignMinus(x) is true if and only if x has negative sign. isSignMinus
// applies to zeros and NaNs as well.