AK: Use AK:: sin and cos on aarch64 build

This fixes the lagom build on aarch64, as `__builtin_sincosf` doesn't
take double arguments.
This commit is contained in:
EWouters 2022-04-07 11:37:19 +02:00 committed by Linus Groh
parent c2d999eb52
commit 0317882b61
Notes: sideshowbarker 2024-07-17 11:08:29 +09:00

View file

@ -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
}