diff --git a/libc/src/__support/FPUtil/PlatformDefs.h b/libc/src/__support/FPUtil/PlatformDefs.h --- a/libc/src/__support/FPUtil/PlatformDefs.h +++ b/libc/src/__support/FPUtil/PlatformDefs.h @@ -15,7 +15,8 @@ #define X87_FPU #endif -#if defined(_WIN32) +// https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms +#if defined(_WIN32) || (defined(__APPLE__) && defined(__aarch64__)) #define LONG_DOUBLE_IS_DOUBLE #endif diff --git a/libc/test/src/math/exhaustive/cosf_test.cpp b/libc/test/src/math/exhaustive/cosf_test.cpp --- a/libc/test/src/math/exhaustive/cosf_test.cpp +++ b/libc/test/src/math/exhaustive/cosf_test.cpp @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "src/__support/FPUtil/FPBits.h" -#include "src/__support/FPUtil/TestHelpers.h" #include "src/math/cosf.h" #include "utils/MPFRWrapper/MPFRUtils.h" #include diff --git a/libc/test/src/math/exhaustive/expm1f_test.cpp b/libc/test/src/math/exhaustive/expm1f_test.cpp --- a/libc/test/src/math/exhaustive/expm1f_test.cpp +++ b/libc/test/src/math/exhaustive/expm1f_test.cpp @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "src/__support/FPUtil/FPBits.h" -#include "src/__support/FPUtil/TestHelpers.h" #include "src/math/expm1f.h" #include "utils/MPFRWrapper/MPFRUtils.h" #include diff --git a/libc/test/src/math/exhaustive/sinf_test.cpp b/libc/test/src/math/exhaustive/sinf_test.cpp --- a/libc/test/src/math/exhaustive/sinf_test.cpp +++ b/libc/test/src/math/exhaustive/sinf_test.cpp @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "src/__support/FPUtil/FPBits.h" -#include "src/__support/FPUtil/TestHelpers.h" #include "src/math/sinf.h" #include "utils/MPFRWrapper/MPFRUtils.h" #include diff --git a/libc/test/src/math/exhaustive/sqrtf_test.cpp b/libc/test/src/math/exhaustive/sqrtf_test.cpp --- a/libc/test/src/math/exhaustive/sqrtf_test.cpp +++ b/libc/test/src/math/exhaustive/sqrtf_test.cpp @@ -7,7 +7,6 @@ //===---------------------------------------------------------------------===// #include "src/__support/FPUtil/FPBits.h" -#include "src/__support/FPUtil/TestHelpers.h" #include "src/math/sqrtf.h" #include "utils/MPFRWrapper/MPFRUtils.h" #include