summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSahan Fernando <sahan.h.fernando@gmail.com>2021-04-17 18:55:40 +1000
committerAndreas Kling <kling@serenityos.org>2021-04-17 11:00:04 +0200
commite6b396c24832daf771c1b06a0daf04b898b3af13 (patch)
tree105c65d18ef4777a14ab86b2cb5bbf6697162664 /Userland
parente4d9fa914e28a908ee575d7dabd1b4953bbc5678 (diff)
downloadserenity-e6b396c24832daf771c1b06a0daf04b898b3af13.zip
LibGfx: Fix sse enabled builds by removing implicit float conversion
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/Gamma.h2
1 files changed, 1 insertions, 1 deletions
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;
}