mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
LibGfx: Fix sse enabled builds by removing implicit float conversion
This commit is contained in:
parent
e4d9fa914e
commit
e6b396c248
Notes:
sideshowbarker
2024-07-18 19:31:16 +09:00
Author: https://github.com/ccapitalK Commit: https://github.com/SerenityOS/serenity/commit/e6b396c2483 Pull-request: https://github.com/SerenityOS/serenity/pull/6401
@ -78,7 +78,7 @@ inline f32x4 linear_to_gamma4(f32x4 x)
|
||||
// Source for approximation: https://mimosa-pudica.net/fast-gamma/
|
||||
constexpr float a = 0.00279491f;
|
||||
constexpr float b = 1.15907984f;
|
||||
float c = (b / sqrt(1 + a)) - 1;
|
||||
float c = (b / sqrtf(1.0f + a)) - 1;
|
||||
return ((b * __builtin_ia32_rsqrtps(x + a)) - c) * x;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user