LibGfx: Remove ancient unused NO_FPU macros

This commit is contained in:
Andreas Kling 2021-08-18 11:03:57 +02:00
commit 2432c5264b
Notes: sideshowbarker 2024-07-18 05:32:39 +09:00
2 changed files with 8 additions and 16 deletions

View file

@ -34,8 +34,6 @@ namespace Gfx {
using AK::SIMD::f32x4;
#ifndef NO_FPU
#ifdef __SSE__
// Transform f32x4 from gamma2.2 space to linear space
@ -122,6 +120,4 @@ inline Color gamma_accurate_blend(Color a, Color b, float mix)
#endif
}
#endif
}

View file

@ -228,10 +228,6 @@ void Painter::fill_rect_with_gradient(Orientation orientation, const IntRect& a_
return;
}
#ifdef NO_FPU
return fill_rect(a_rect, gradient_start);
#endif
auto rect = to_physical(a_rect);
auto clipped_rect = IntRect::intersection(rect, clip_rect() * scale());
if (clipped_rect.is_empty())