Unified · Split
| @@ -7,13 +7,15 @@ repeat( 20 ) n *=> n; · 6 unmodified lines | ||
| 7 | 7 | // bye sanity |
| 8 | 8 | 0 *=> n; |
| 9 | 9 | // test it |
| 10 | −// *** disabled due to different isnan on different architecture *** | |
| 11 | −// *** for example, the following returns 1 on Mac intel but 0 on Mac M1 *** | |
| 12 | −// <<< Math.isnan( n ) >>>; | |
| 10 | +<<< Math.isnan( n ) >>>; | |
| 11 | + | |
| 12 | +// *** RE-ENABLED in 1.4.2.1; differences due the fast-math compiler flag | |
| 13 | +// for example, if -ffast-math enabled, the above returns 1 on Mac | |
| 14 | +// intel but 0 on Mac arm64; fast-math is now disabled by default *** | |
| 13 | 15 | |
| 14 | 16 | // more |
| 15 | 17 | <<< 1.0 / 0.0 => Math.isinf >>>; |
| 16 | −// *** disabled due to above reason *** | |
| 17 | −// <<< 0.0 / 0.0 => Math.isnan >>>; | |
| 18 | +// *** the following alos differs if fast-math is enabled | |
| 19 | +<<< 0.0 / 0.0 => Math.isnan >>>; | |
| 18 | 20 | <<< Math.INFINITY, -Math.INFINITY >>>; |
| 19 | 21 | <<< Math.INFINITY => Math.isinf >>>; |
| @@ -1,4 +1,6 @@ | ||
| 1 | 1 | 1 :(int) |
| 2 | 2 | 1 :(int) |
| 3 | +1 :(int) | |
| 4 | +1 :(int) | |
| 3 | 5 | inf -inf |
| 4 | 6 | 1 :(int) |
| @@ -7,10 +7,10 @@ repeat( 20 ) n *=> n; · 6 unmodified lines | ||
| 7 | 7 | // bye sanity |
| 8 | 8 | 0 *=> n; |
| 9 | 9 | // test it |
| 10 | −// <<< Math.isnan( n ) >>>; | |
| 10 | +<<< Math.isnan( n ) >>>; | |
| 11 | 11 | |
| 12 | 12 | // more |
| 13 | 13 | <<< 1.0 / 0.0 => Math.isinf >>>; |
| 14 | −// <<< 0.0 / 0.0 => Math.isnan >>>; | |
| 14 | +<<< 0.0 / 0.0 => Math.isnan >>>; | |
| 15 | 15 | <<< Math.INFINITY, -Math.INFINITY >>>; |
| 16 | 16 | <<< Math.INFINITY => Math.isinf >>>; |
| @@ -1,4 +1,6 @@ | ||
| 1 | 1 | 1 :(int) |
| 2 | 2 | 1 :(int) |
| 3 | +1 :(int) | |
| 4 | +1 :(int) | |
| 3 | 5 | inf -inf |
| 4 | 6 | 1 :(int) |