Make more code aarch64 friendly

This commit is contained in:
Justine Tunney 2023-05-02 13:38:16 -07:00
parent ca2860947f
commit 2b73e72d59
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
568 changed files with 2197 additions and 1061 deletions

View file

@ -18,12 +18,14 @@
*/
#include "libc/errno.h"
#include "libc/math.h"
#include "third_party/libcxx/math.h"
/**
* Returns 𝑥^𝑦.
* @note should take ~56ns
*/
long double powl(long double x, long double y) {
#ifdef __x86_64__
long double t, u;
if (!isunordered(x, y)) {
if (!isinf(y)) {
@ -85,4 +87,7 @@ long double powl(long double x, long double y) {
} else {
return NAN;
}
#else
return pow(x, y);
#endif
}