File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1094,7 +1094,7 @@ impl f32 {
1094
1094
/// assert_eq!((12.5f32).to_bits(), 0x41480000);
1095
1095
///
1096
1096
/// ```
1097
- #[ stable( feature = "float_bits_conv" , since = "1.21 .0" ) ]
1097
+ #[ stable( feature = "float_bits_conv" , since = "1.20 .0" ) ]
1098
1098
#[ inline]
1099
1099
pub fn to_bits ( self ) -> u32 {
1100
1100
unsafe { :: mem:: transmute ( self ) }
@@ -1125,7 +1125,7 @@ impl f32 {
1125
1125
/// let snan = 0x7F800001;
1126
1126
/// assert_ne!(f32::from_bits(snan).to_bits(), snan);
1127
1127
/// ```
1128
- #[ stable( feature = "float_bits_conv" , since = "1.21 .0" ) ]
1128
+ #[ stable( feature = "float_bits_conv" , since = "1.20 .0" ) ]
1129
1129
#[ inline]
1130
1130
pub fn from_bits ( mut v : u32 ) -> Self {
1131
1131
const EXP_MASK : u32 = 0x7F800000 ;
Original file line number Diff line number Diff line change @@ -1009,7 +1009,7 @@ impl f64 {
1009
1009
/// assert_eq!((12.5f64).to_bits(), 0x4029000000000000);
1010
1010
///
1011
1011
/// ```
1012
- #[ stable( feature = "float_bits_conv" , since = "1.21 .0" ) ]
1012
+ #[ stable( feature = "float_bits_conv" , since = "1.20 .0" ) ]
1013
1013
#[ inline]
1014
1014
pub fn to_bits ( self ) -> u64 {
1015
1015
unsafe { :: mem:: transmute ( self ) }
@@ -1040,7 +1040,7 @@ impl f64 {
1040
1040
/// let snan = 0x7FF0000000000001;
1041
1041
/// assert_ne!(f64::from_bits(snan).to_bits(), snan);
1042
1042
/// ```
1043
- #[ stable( feature = "float_bits_conv" , since = "1.21 .0" ) ]
1043
+ #[ stable( feature = "float_bits_conv" , since = "1.20 .0" ) ]
1044
1044
#[ inline]
1045
1045
pub fn from_bits ( mut v : u64 ) -> Self {
1046
1046
const EXP_MASK : u64 = 0x7FF0000000000000 ;
You can’t perform that action at this time.
0 commit comments