mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
AK: Use builtin versions of llrint{,l,f}
This fixes the build on M1 Macs.
This commit is contained in:
parent
fbc1448eab
commit
6ea89c35fe
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/EWouters Commit: https://github.com/SerenityOS/serenity/commit/6ea89c35fe Pull-request: https://github.com/SerenityOS/serenity/pull/13959 Reviewed-by: https://github.com/Hendiadyoin1 ✅
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user