File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1482,6 +1482,9 @@ inline APFloat minimum(const APFloat &A, const APFloat &B) {
1482
1482
return A.isNegative () ? A : B;
1483
1483
return B < A ? B : A;
1484
1484
}
1485
+
1486
+ // / Implements IEEE 754-2019 minimumNumber semantics. Returns the smaller
1487
+ // / of 2 arguments, not propagating NaNs and treating -0 as less than +0.
1485
1488
LLVM_READONLY
1486
1489
inline APFloat minimumnum (const APFloat &A, const APFloat &B) {
1487
1490
if (A.isNaN ())
@@ -1505,6 +1508,9 @@ inline APFloat maximum(const APFloat &A, const APFloat &B) {
1505
1508
return A.isNegative () ? B : A;
1506
1509
return A < B ? B : A;
1507
1510
}
1511
+
1512
+ // / Implements IEEE 754-2019 maximumNumber semantics. Returns the larger
1513
+ // / of 2 arguments, not propagating NaNs and treating -0 as less than +0.
1508
1514
LLVM_READONLY
1509
1515
inline APFloat maximumnum (const APFloat &A, const APFloat &B) {
1510
1516
if (A.isNaN ())
You can’t perform that action at this time.
0 commit comments