1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 20:49:59 +00:00

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

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
}