From 6ea89c35febf6e3480f1306d34cf4fd70a99a878 Mon Sep 17 00:00:00 2001 From: EWouters <6179932+EWouters@users.noreply.github.com> Date: Sat, 7 May 2022 22:41:59 +0200 Subject: [PATCH] AK: Use builtin versions of `llrint{,l,f}` This fixes the build on M1 Macs. --- AK/Math.h | 6 +++--- 1 file 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(ret); #else if constexpr (IsSame) - return static_cast(llrintl(value)); + return static_cast(__builtin_llrintl(value)); if constexpr (IsSame) - return static_cast(llrint(value)); + return static_cast(__builtin_llrint(value)); if constexpr (IsSame) - return static_cast(llrintf(value)); + return static_cast(__builtin_llrintf(value)); #endif }