mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +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
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…
Add table
Add a link
Reference in a new issue