File tree 4 files changed +16
-8
lines changed
4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -670,7 +670,8 @@ impl f128 {
670
670
/// If one of the arguments is NaN, then the other argument is returned.
671
671
/// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
672
672
/// 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.
674
675
///
675
676
/// ```
676
677
/// #![feature(f128)]
@@ -696,7 +697,8 @@ impl f128 {
696
697
/// If one of the arguments is NaN, then the other argument is returned.
697
698
/// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
698
699
/// 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.
700
702
///
701
703
/// ```
702
704
/// #![feature(f128)]
Original file line number Diff line number Diff line change @@ -662,7 +662,8 @@ impl f16 {
662
662
/// If one of the arguments is NaN, then the other argument is returned.
663
663
/// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
664
664
/// 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.
666
667
///
667
668
/// ```
668
669
/// #![feature(f16)]
@@ -687,7 +688,8 @@ impl f16 {
687
688
/// If one of the arguments is NaN, then the other argument is returned.
688
689
/// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
689
690
/// 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.
691
693
///
692
694
/// ```
693
695
/// #![feature(f16)]
Original file line number Diff line number Diff line change @@ -874,7 +874,8 @@ impl f32 {
874
874
/// If one of the arguments is NaN, then the other argument is returned.
875
875
/// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
876
876
/// 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.
878
879
///
879
880
/// ```
880
881
/// let x = 1.0f32;
@@ -895,7 +896,8 @@ impl f32 {
895
896
/// If one of the arguments is NaN, then the other argument is returned.
896
897
/// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
897
898
/// 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.
899
901
///
900
902
/// ```
901
903
/// let x = 1.0f32;
Original file line number Diff line number Diff line change @@ -892,7 +892,8 @@ impl f64 {
892
892
/// If one of the arguments is NaN, then the other argument is returned.
893
893
/// This follows the IEEE 754-2008 semantics for maxNum, except for handling of signaling NaNs;
894
894
/// 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.
896
897
///
897
898
/// ```
898
899
/// let x = 1.0_f64;
@@ -913,7 +914,8 @@ impl f64 {
913
914
/// If one of the arguments is NaN, then the other argument is returned.
914
915
/// This follows the IEEE 754-2008 semantics for minNum, except for handling of signaling NaNs;
915
916
/// 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.
917
919
///
918
920
/// ```
919
921
/// let x = 1.0_f64;
You can’t perform that action at this time.
0 commit comments