@@ -399,7 +399,7 @@ impl f128 {
399
399
/// assert_eq!(1.0f128.next_up(), 1.0 + f128::EPSILON);
400
400
/// // But not for most numbers.
401
401
/// assert!(0.1f128.next_up() < 0.1 + f128::EPSILON);
402
- /// assert_eq!(16777216f128 .next_up(), 16777218.0 );
402
+ /// assert_eq!(4611686018427387904f128 .next_up(), 4611686018427387904.000000000000001 );
403
403
/// ```
404
404
///
405
405
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
@@ -488,8 +488,7 @@ impl f128 {
488
488
///
489
489
/// ```
490
490
/// #![feature(f128)]
491
- /// # // FIXME(f16_f128): remove when compiler_builtins is updated
492
- /// # #![cfg(target_arch = "x86_64")]
491
+ /// # #[cfg(target_arch = "x86_64")] { // FIXME(f16_f128): remove when `float*itf` is available
493
492
///
494
493
/// let value = 4.6_f128;
495
494
/// let rounded = unsafe { value.to_int_unchecked::<u16>() };
@@ -498,6 +497,7 @@ impl f128 {
498
497
/// let value = -128.9_f128;
499
498
/// let rounded = unsafe { value.to_int_unchecked::<i8>() };
500
499
/// assert_eq!(rounded, i8::MIN);
500
+ /// # }
501
501
/// ```
502
502
///
503
503
/// # Safety
@@ -676,14 +676,14 @@ impl f128 {
676
676
///
677
677
/// ```
678
678
/// #![feature(f128)]
679
- /// # // FIXME(f16_f128): remove when compiler_builtins is updated
680
- /// # #![cfg(target_arch = "x86_64")]
679
+ /// # #[cfg(target_arch = "x86_64")] { // FIXME(f16_f128): remove when `eqtf2` is available
681
680
///
682
681
/// let value = f128::from_be_bytes(
683
682
/// [0x40, 0x02, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
684
683
/// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
685
684
/// );
686
685
/// assert_eq!(value, 12.5);
686
+ /// # }
687
687
/// ```
688
688
#[ inline]
689
689
#[ must_use]
@@ -701,14 +701,14 @@ impl f128 {
701
701
///
702
702
/// ```
703
703
/// #![feature(f128)]
704
- /// # // FIXME(f16_f128): remove when compiler_builtins is updated
705
- /// # #![cfg(target_arch = "x86_64")]
704
+ /// # #[cfg(target_arch = "x86_64")] { // FIXME(f16_f128): remove when `eqtf2` is available
706
705
///
707
706
/// let value = f128::from_le_bytes(
708
707
/// [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
709
708
/// 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x02, 0x40]
710
709
/// );
711
710
/// assert_eq!(value, 12.5);
711
+ /// # }
712
712
/// ```
713
713
#[ inline]
714
714
#[ must_use]
@@ -733,8 +733,7 @@ impl f128 {
733
733
///
734
734
/// ```
735
735
/// #![feature(f128)]
736
- /// # // FIXME(f16_f128): remove when compiler_builtins is updated
737
- /// # #![cfg(target_arch = "x86_64")]
736
+ /// # #[cfg(target_arch = "x86_64")] { // FIXME(f16_f128): remove when `eqtf2` is available
738
737
///
739
738
/// let value = f128::from_ne_bytes(if cfg!(target_endian = "big") {
740
739
/// [0x40, 0x02, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -744,6 +743,7 @@ impl f128 {
744
743
/// 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x02, 0x40]
745
744
/// });
746
745
/// assert_eq!(value, 12.5);
746
+ /// # }
747
747
/// ```
748
748
#[ inline]
749
749
#[ must_use]
@@ -808,7 +808,7 @@ impl f128 {
808
808
/// .zip([f128::NAN, -5.0, 0.1, 10.0, 99.0, f128::INFINITY].iter())
809
809
/// .for_each(|(a, b)| assert_eq!(a.to_bits() == b.to_bits()))
810
810
/// } else {
811
- /// assert!( bois.into_iter().map(|b| b.weight)
811
+ /// bois.into_iter().map(|b| b.weight)
812
812
/// .zip([-5.0, 0.1, 10.0, 99.0, f128::INFINITY, f128::NAN].iter())
813
813
/// .for_each(|(a, b)| assert_eq!(a.to_bits() == b.to_bits()))
814
814
/// }
0 commit comments