1
Fork 0
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:
Steffen Rusitschka 2022-11-25 18:15:55 +01:00 committed by Linus Groh
parent 2e806dab07
commit 1aa07d7328
3 changed files with 39 additions and 1 deletions

View file

@ -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;
}