summaryrefslogtreecommitdiff
path: root/libc/test/src/math/ilogb_test.cpp
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2024-03-18 14:19:33 -0700
committerGitHub <noreply@github.com>2024-03-18 14:19:33 -0700
commit5d56b34807e0f6e7a6684e57bec7c1751778862c (patch)
tree904d422f958d4c1fc0f726b87761a5ef9286f270 /libc/test/src/math/ilogb_test.cpp
parentd0d9839b146692160aa3e0efed86faefde949f49 (diff)
[libc] Remove direct math.h includes (#85324)
Reland of #84991 A downstream overlay mode user ran into issues with the isnan macro not working in our sources with a specific libc configuration. This patch replaces the last direct includes of math.h with our internal math_macros.h, along with the necessary build system changes.
Diffstat (limited to 'libc/test/src/math/ilogb_test.cpp')
-rw-r--r--libc/test/src/math/ilogb_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/src/math/ilogb_test.cpp b/libc/test/src/math/ilogb_test.cpp
index 7011c43386e6..45756ffa3d9a 100644
--- a/libc/test/src/math/ilogb_test.cpp
+++ b/libc/test/src/math/ilogb_test.cpp
@@ -8,12 +8,12 @@
#include "ILogbTest.h"
+#include "include/llvm-libc-macros/math-macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/math/ilogb.h"
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
-#include <math.h>
TEST_F(LlvmLibcILogbTest, SpecialNumbers_ilogb) {
test_special_numbers<double>(&LIBC_NAMESPACE::ilogb);