mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibGfx: Remove a workaround for clang before 11
This bug has long been fixed.
This commit is contained in:
parent
636602a54e
commit
ff4b912b7c
1 changed files with 0 additions and 6 deletions
|
@ -42,13 +42,7 @@ using AK::SIMD::f32x4;
|
||||||
|
|
||||||
// Transform f32x4 from gamma2.2 space to linear space
|
// Transform f32x4 from gamma2.2 space to linear space
|
||||||
// Assumes x is in range [0, 1]
|
// Assumes x is in range [0, 1]
|
||||||
// FIXME: Remove this hack once clang-11 is available as the default in Github Actions.
|
|
||||||
// This is apparently sometime mid-December. https://github.com/actions/virtual-environments/issues/2130
|
|
||||||
# if !defined(__clang__) || __clang_major__ >= 11
|
|
||||||
constexpr f32x4 gamma_to_linear4(f32x4 x)
|
constexpr f32x4 gamma_to_linear4(f32x4 x)
|
||||||
# else
|
|
||||||
inline f32x4 gamma_to_linear4(f32x4 x)
|
|
||||||
# endif
|
|
||||||
{
|
{
|
||||||
return (0.8f + 0.2f * x) * x * x;
|
return (0.8f + 0.2f * x) * x * x;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue