mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
AK: Implement FloatExtractor<f128>
This patch adds support for 128-bit floating points in FloatExtractor. This is required to build SerenityOS on MacOS/aarch64. It might break building for Raspberry Pi.
This commit is contained in:
parent
2e806dab07
commit
1aa07d7328
3 changed files with 39 additions and 1 deletions
|
@ -31,7 +31,7 @@ constexpr T ceil_log2(T x)
|
|||
return 0;
|
||||
|
||||
T log = AK::log2(x);
|
||||
log += (x & ((1 << (log - 1)) - 1)) != 0;
|
||||
log += (x & ((((T)1) << (log - 1)) - 1)) != 0;
|
||||
return log;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue