@@ -399,7 +399,7 @@ impl f128 {
399399 /// assert_eq!(1.0f128.next_up(), 1.0 + f128::EPSILON);
400400 /// // But not for most numbers.
401401 /// 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 );
403403 /// ```
404404 ///
405405 /// [`NEG_INFINITY`]: Self::NEG_INFINITY
@@ -488,8 +488,7 @@ impl f128 {
488488 ///
489489 /// ```
490490 /// #![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
493492 ///
494493 /// let value = 4.6_f128;
495494 /// let rounded = unsafe { value.to_int_unchecked::<u16>() };
@@ -498,6 +497,7 @@ impl f128 {
498497 /// let value = -128.9_f128;
499498 /// let rounded = unsafe { value.to_int_unchecked::<i8>() };
500499 /// assert_eq!(rounded, i8::MIN);
500+ /// # }
501501 /// ```
502502 ///
503503 /// # Safety
@@ -676,14 +676,14 @@ impl f128 {
676676 ///
677677 /// ```
678678 /// #![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
681680 ///
682681 /// let value = f128::from_be_bytes(
683682 /// [0x40, 0x02, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
684683 /// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
685684 /// );
686685 /// assert_eq!(value, 12.5);
686+ /// # }
687687 /// ```
688688 #[ inline]
689689 #[ must_use]
@@ -701,14 +701,14 @@ impl f128 {
701701 ///
702702 /// ```
703703 /// #![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
706705 ///
707706 /// let value = f128::from_le_bytes(
708707 /// [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
709708 /// 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x02, 0x40]
710709 /// );
711710 /// assert_eq!(value, 12.5);
711+ /// # }
712712 /// ```
713713 #[ inline]
714714 #[ must_use]
@@ -733,8 +733,7 @@ impl f128 {
733733 ///
734734 /// ```
735735 /// #![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
738737 ///
739738 /// let value = f128::from_ne_bytes(if cfg!(target_endian = "big") {
740739 /// [0x40, 0x02, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -744,6 +743,7 @@ impl f128 {
744743 /// 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x02, 0x40]
745744 /// });
746745 /// assert_eq!(value, 12.5);
746+ /// # }
747747 /// ```
748748 #[ inline]
749749 #[ must_use]
@@ -808,7 +808,7 @@ impl f128 {
808808 /// .zip([f128::NAN, -5.0, 0.1, 10.0, 99.0, f128::INFINITY].iter())
809809 /// .for_each(|(a, b)| assert_eq!(a.to_bits() == b.to_bits()))
810810 /// } else {
811- /// assert!( bois.into_iter().map(|b| b.weight)
811+ /// bois.into_iter().map(|b| b.weight)
812812 /// .zip([-5.0, 0.1, 10.0, 99.0, f128::INFINITY, f128::NAN].iter())
813813 /// .for_each(|(a, b)| assert_eq!(a.to_bits() == b.to_bits()))
814814 /// }
0 commit comments