mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +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
Notes:
sideshowbarker
2024-07-17 06:40:35 +09:00
Author: https://github.com/rusitschka
Commit: 1aa07d7328
Pull-request: https://github.com/SerenityOS/serenity/pull/16187
Reviewed-by: https://github.com/nico ✅
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