mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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:
parent
c2d999eb52
commit
0317882b61
Notes:
sideshowbarker
2024-07-17 11:08:29 +09:00
Author: https://github.com/EWouters Commit: https://github.com/SerenityOS/serenity/commit/0317882b61 Pull-request: https://github.com/SerenityOS/serenity/pull/13553 Reviewed-by: https://github.com/BertalanD ✅
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue