summaryrefslogtreecommitdiff
path: root/AK/Math.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Math.h')
-rw-r--r--AK/Math.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/Math.h b/AK/Math.h
index d7026bb1e5..2af14367dc 100644
--- a/AK/Math.h
+++ b/AK/Math.h
@@ -577,11 +577,11 @@ ALWAYS_INLINE I round_to(P value)
return static_cast<I>(ret);
#else
if constexpr (IsSame<P, long double>)
- return static_cast<I>(llrintl(value));
+ return static_cast<I>(__builtin_llrintl(value));
if constexpr (IsSame<P, double>)
- return static_cast<I>(llrint(value));
+ return static_cast<I>(__builtin_llrint(value));
if constexpr (IsSame<P, float>)
- return static_cast<I>(llrintf(value));
+ return static_cast<I>(__builtin_llrintf(value));
#endif
}