From e6b396c24832daf771c1b06a0daf04b898b3af13 Mon Sep 17 00:00:00 2001 From: Sahan Fernando Date: Sat, 17 Apr 2021 18:55:40 +1000 Subject: [PATCH] LibGfx: Fix sse enabled builds by removing implicit float conversion --- Userland/Libraries/LibGfx/Gamma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Gamma.h b/Userland/Libraries/LibGfx/Gamma.h index 345e30bff5..2882f7cf6c 100644 --- a/Userland/Libraries/LibGfx/Gamma.h +++ b/Userland/Libraries/LibGfx/Gamma.h @@ -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; }