diff options
author | EWouters <6179932+EWouters@users.noreply.github.com> | 2022-05-07 22:41:59 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-07 23:36:49 +0200 |
commit | 6ea89c35febf6e3480f1306d34cf4fd70a99a878 (patch) | |
tree | f3dbc930a129ad47af66d8584592577235abe345 /AK | |
parent | fbc1448eab7a1ea681a57bebed6a6f0b3aa8a281 (diff) | |
download | serenity-6ea89c35febf6e3480f1306d34cf4fd70a99a878.zip |
AK: Use builtin versions of `llrint{,l,f}`
This fixes the build on M1 Macs.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Math.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |