@@ -694,11 +694,14 @@ impl f128 {
694694
695695 /// Returns the maximum of the two numbers, ignoring NaN.
696696 ///
697- /// If one of the arguments is NaN, then the other argument is returned.
697+ /// If exactly one of the arguments is NaN, then the other argument is returned. If both
698+ /// arguments are NaN, the return value is NaN, with the bit pattern picked using the usual
699+ /// [rules for arithmetic operations](f32#nan-bit-patterns). If the inputs compare equal (such
700+ /// as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
701+ ///
698702 /// This follows the IEEE 754-2008 semantics for `maxNum`, except for handling of signaling NaNs;
699703 /// this function handles all NaNs the same way and avoids `maxNum`'s problems with associativity.
700- /// This also matches the behavior of libm’s fmax. In particular, if the inputs compare equal
701- /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
704+ /// This also matches the behavior of libm’s `fmax`.
702705 ///
703706 /// ```
704707 /// #![feature(f128)]
@@ -722,11 +725,14 @@ impl f128 {
722725
723726 /// Returns the minimum of the two numbers, ignoring NaN.
724727 ///
725- /// If one of the arguments is NaN, then the other argument is returned.
728+ /// If exactly one of the arguments is NaN, then the other argument is returned. If both
729+ /// arguments are NaN, the return value is NaN, with the bit pattern picked using the usual
730+ /// [rules for arithmetic operations](f32#nan-bit-patterns). If the inputs compare equal (such
731+ /// as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
732+ ///
726733 /// This follows the IEEE 754-2008 semantics for `minNum`, except for handling of signaling NaNs;
727734 /// this function handles all NaNs the same way and avoids `minNum`'s problems with associativity.
728- /// This also matches the behavior of libm’s fmin. In particular, if the inputs compare equal
729- /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
735+ /// This also matches the behavior of libm’s `fmin`.
730736 ///
731737 /// ```
732738 /// #![feature(f128)]
0 commit comments