Skip to content

Commit

Permalink
f16::is_sign_{positive,negative} were feature-gated on f128
Browse files Browse the repository at this point in the history
  • Loading branch information
tspiteri committed May 6, 2024
1 parent 3111015 commit fac0a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/num/f16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl f16 {
/// 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()
}
Expand All @@ -239,7 +239,7 @@ impl f16 {
/// 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.
Expand Down

0 comments on commit fac0a74

Please sign in to comment.