File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16465,7 +16465,11 @@ type.
16465
16465
Semantics:
16466
16466
""""""""""
16467
16467
Follows the IEEE754 2008 semantics for minNum.
16468
- This also matches the behavior of libm's fmin.
16468
+ This also matches the current (C23) behavior of libm's fmin.
16469
+
16470
+ Historically, libc returns NUM for NUM vs (sNaN or qNaN), and may return
16471
+ sNaN for qNaN vs sNaN. Withe recent libc versions, libc follows IEEE754-2008:
16472
+ NUM vs sNaN -> qNaN; NUM vs qNaN -> NUM; qNaN vs sNaN -> qNaN; sNaN vs sNaN -> qNaN.
16469
16473
16470
16474
If either operand is a qNaN, returns the other non-NaN operand. Returns
16471
16475
NaN only if both operands are NaN or either operand is sNaN.
@@ -16508,7 +16512,11 @@ type.
16508
16512
Semantics:
16509
16513
""""""""""
16510
16514
Follows the IEEE754 2008 semantics for maxNum.
16511
- This also matches the behavior of libm's fmax.
16515
+ This also matches the current (C23) behavior of libm's fmax.
16516
+
16517
+ Historically, libc returns NUM for NUM vs (sNaN or qNaN), and may return
16518
+ sNaN for qNaN vs sNaN. Withe recent libc versions, libc follows IEEE754-2008:
16519
+ NUM vs sNaN -> qNaN; NUM vs qNaN -> NUM; qNaN vs sNaN -> qNaN; sNaN vs sNaN -> qNaN.
16512
16520
16513
16521
If either operand is a NaN, returns the other non-NaN operand. Returns
16514
16522
NaN only if both operands are NaN or either operand is sNaN.
You can’t perform that action at this time.
0 commit comments