From 0317882b61ba5b82cb2779239d24d88178c0f61d Mon Sep 17 00:00:00 2001 From: EWouters <6179932+EWouters@users.noreply.github.com> Date: Thu, 7 Apr 2022 11:37:19 +0200 Subject: [PATCH] AK: Use AK:: sin and cos on aarch64 build This fixes the lagom build on aarch64, as `__builtin_sincosf` doesn't take double arguments. --- AK/Math.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AK/Math.h b/AK/Math.h index 2af14367dc..212bd2c4e1 100644 --- a/AK/Math.h +++ b/AK/Math.h @@ -270,7 +270,8 @@ constexpr void sincos(T angle, T& sin_val, T& cos_val) : "=t"(cos_val), "=u"(sin_val) : "0"(angle)); #else - __builtin_sincosf(angle, sin_val, cos_val); + sin_val = sin(angle); + cos_val = cos(angle); #endif }