Daniel Bertalan
0cd85ab0fc
AK+LibJS: Make Number.MIN_VALUE a denormal
...
ECMA-262 implies that `MIN_VALUE` should be a denormalized value if
denormal arithmetic is supported. This is the case on x86-64 and AArch64
using standard GCC/Clang compilation settings.
test262 checks whether `Number.MIN_VALUE / 2.0` is equal to 0, which
only holds if `MIN_VALUE` is the smallest denormalized value.
This commit renames the existing `NumericLimits<FloatingPoint>::min()`
to `min_normal()` and adds a `min_denormal()` method to force users to
explicitly think about which one is appropriate for their use case. We
shouldn't follow the STL's confusingly designed interface in this
regard.
2023-07-02 21:19:09 +01:00
..
2023-06-26 10:39:07 +02:00
2023-07-01 06:51:25 +02:00
2023-06-24 17:13:30 +02:00
2023-06-24 17:13:30 +02:00
2023-04-30 06:04:33 +02:00
2023-07-01 16:55:17 +01:00
2023-07-01 16:55:17 +01:00
2023-07-01 16:55:17 +01:00
2023-06-30 23:23:15 +02:00
2023-04-15 16:23:03 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-27 13:48:27 +02:00
2023-04-15 16:06:02 +02:00
2023-06-30 23:23:15 +02:00
2023-06-22 06:46:27 +02:00
2023-06-22 06:46:27 +02:00
2023-06-15 14:03:51 +01:00
2023-06-15 14:03:51 +01:00
2023-05-24 23:18:07 +02:00
2023-06-15 14:03:51 +01:00
2023-06-27 00:21:52 +02:00
2023-04-30 06:04:33 +02:00
2023-05-28 14:40:22 +02:00
2023-05-28 10:03:11 +02:00
2023-06-26 10:39:07 +02:00
2023-07-02 14:50:02 +02:00
2023-06-12 06:40:49 +02:00
2023-07-01 16:55:17 +01:00
2023-07-01 16:55:17 +01:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-05-30 06:16:20 +02:00
2023-07-02 21:19:09 +01:00
2023-06-12 06:40:49 +02:00
2023-06-12 06:40:49 +02:00
2023-04-15 14:07:28 +02:00
2023-04-15 14:07:28 +02:00
2023-06-13 01:49:02 +02:00
2023-04-30 06:04:33 +02:00
2023-06-29 08:43:28 +02:00
2023-06-28 23:36:15 +01:00
2023-06-26 10:39:07 +02:00
2023-04-30 06:04:33 +02:00
2023-04-30 06:04:33 +02:00
2023-04-15 14:07:28 +02:00
2023-05-06 06:46:02 -07:00
2023-06-23 20:22:45 +02:00
2023-06-23 20:22:45 +02:00
2023-06-23 20:22:45 +02:00
2023-06-23 20:22:45 +02:00
2023-06-23 20:22:45 +02:00
2023-06-26 10:39:07 +02:00
2023-06-22 21:16:17 +02:00
2023-04-30 06:04:33 +02:00
2023-07-01 16:55:17 +01:00
2023-07-01 16:55:17 +01:00
2023-07-01 16:55:17 +01:00
2023-07-01 16:55:17 +01:00
2023-04-15 14:07:28 +02:00
2023-05-26 05:23:55 +02:00
2023-04-15 16:06:52 +02:00
2023-07-01 20:29:12 +01:00
2023-07-01 20:29:12 +01:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00
2023-06-26 10:39:07 +02:00