diff --git a/AK/SIMDMath.h b/AK/SIMDMath.h index 5fff5c361d..4032ceabf1 100644 --- a/AK/SIMDMath.h +++ b/AK/SIMDMath.h @@ -52,6 +52,11 @@ ALWAYS_INLINE static f32x4 clamp(f32x4 v, f32x4 min, f32x4 max) return v < min ? min : (v > max ? max : v); } +ALWAYS_INLINE static f32x4 clamp(f32x4 v, float min, float max) +{ + return v < min ? min : (v > max ? max : v); +} + ALWAYS_INLINE static f32x4 exp(f32x4 v) { // FIXME: This should be replaced with a vectorized algorithm instead of calling the scalar expf 4 times