1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 23:01:01 +00:00
serenity/Userland
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
..
Applets ClipboardHistory: Use i32 config change listener 2023-06-27 15:37:00 +01:00
Applications 3DFileViewer: Properly handle ENOENT errors 2023-07-02 17:35:35 +02:00
BuggieBox Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
Demos LibGUI+Userland: Port StatusBar::text() and set_text functions to String 2023-06-15 13:53:22 +01:00
DevTools LibDiff: Change underlying representation of Hunk to allow context 2023-07-02 11:18:11 -06:00
DynamicLoader Everywhere: Resolve conflicts with LibC and libc++ 2023-06-27 12:40:38 +02:00
Games Userland: Convert config listener callbacks to use StringView 2023-06-27 15:37:00 +01:00
Libraries AK+LibJS: Make Number.MIN_VALUE a denormal 2023-07-02 21:19:09 +01:00
Services AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
Shell Shell: Add option Produce symbolic output to umask 2023-07-02 11:19:10 -06:00
Utilities Utilities: Make mktemp follow the spec directory path resolution 2023-07-02 11:19:10 -06:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00