File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -670,7 +670,8 @@ impl f128 {
670670 /// If one of the arguments is NaN, then the other argument is returned.
671671 /// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
672672 /// this function handles all NaNs the same way and avoids maxNum's problems with associativity.
673- /// This also matches the behavior of libm’s fmax.
673+ /// This also matches the behavior of libm’s fmax. In particular, if the inputs compare equal
674+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
674675 ///
675676 /// ```
676677 /// #![feature(f128)]
@@ -696,7 +697,8 @@ impl f128 {
696697 /// If one of the arguments is NaN, then the other argument is returned.
697698 /// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
698699 /// this function handles all NaNs the same way and avoids minNum's problems with associativity.
699- /// This also matches the behavior of libm’s fmin.
700+ /// This also matches the behavior of libm’s fmin. 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.
700702 ///
701703 /// ```
702704 /// #![feature(f128)]
Original file line number Diff line number Diff line change @@ -662,7 +662,8 @@ impl f16 {
662662 /// If one of the arguments is NaN, then the other argument is returned.
663663 /// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
664664 /// this function handles all NaNs the same way and avoids maxNum's problems with associativity.
665- /// This also matches the behavior of libm’s fmax.
665+ /// This also matches the behavior of libm’s fmax. In particular, if the inputs compare equal
666+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
666667 ///
667668 /// ```
668669 /// #![feature(f16)]
@@ -687,7 +688,8 @@ impl f16 {
687688 /// If one of the arguments is NaN, then the other argument is returned.
688689 /// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
689690 /// this function handles all NaNs the same way and avoids minNum's problems with associativity.
690- /// This also matches the behavior of libm’s fmin.
691+ /// This also matches the behavior of libm’s fmin. In particular, if the inputs compare equal
692+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
691693 ///
692694 /// ```
693695 /// #![feature(f16)]
Original file line number Diff line number Diff line change @@ -874,7 +874,8 @@ impl f32 {
874874 /// If one of the arguments is NaN, then the other argument is returned.
875875 /// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
876876 /// this function handles all NaNs the same way and avoids maxNum's problems with associativity.
877- /// This also matches the behavior of libm’s fmax.
877+ /// This also matches the behavior of libm’s fmax. In particular, if the inputs compare equal
878+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
878879 ///
879880 /// ```
880881 /// let x = 1.0f32;
@@ -895,7 +896,8 @@ impl f32 {
895896 /// If one of the arguments is NaN, then the other argument is returned.
896897 /// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
897898 /// this function handles all NaNs the same way and avoids minNum's problems with associativity.
898- /// This also matches the behavior of libm’s fmin.
899+ /// This also matches the behavior of libm’s fmin. In particular, if the inputs compare equal
900+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
899901 ///
900902 /// ```
901903 /// let x = 1.0f32;
Original file line number Diff line number Diff line change @@ -892,7 +892,8 @@ impl f64 {
892892 /// If one of the arguments is NaN, then the other argument is returned.
893893 /// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
894894 /// this function handles all NaNs the same way and avoids maxNum's problems with associativity.
895- /// This also matches the behavior of libm’s fmax.
895+ /// This also matches the behavior of libm’s fmax. In particular, if the inputs compare equal
896+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
896897 ///
897898 /// ```
898899 /// let x = 1.0_f64;
@@ -913,7 +914,8 @@ impl f64 {
913914 /// If one of the arguments is NaN, then the other argument is returned.
914915 /// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
915916 /// this function handles all NaNs the same way and avoids minNum's problems with associativity.
916- /// This also matches the behavior of libm’s fmin.
917+ /// This also matches the behavior of libm’s fmin. In particular, if the inputs compare equal
918+ /// (such as for the case of `+0.0` and `-0.0`), either input may be returned non-deterministically.
917919 ///
918920 /// ```
919921 /// let x = 1.0_f64;
You can’t perform that action at this time.
0 commit comments