Skip to content

Commit 57d417b

Browse files
committed
- Replaced src/__support/libc_errno.h with hdr/errno_macros.h
1 parent 49cb38c commit 57d417b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

libc/test/src/math/smoke/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3509,8 +3509,8 @@ add_fp_unittest(
35093509
SRCS
35103510
rsqrtf16_test.cpp
35113511
DEPENDS
3512-
libc.src.errno.errno
35133512
libc.src.math.rsqrtf16
3513+
libc.hdr.errno_macros
35143514
)
35153515

35163516
add_fp_unittest(

libc/test/src/math/smoke/rsqrtf16_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "src/__support/libc_errno.h"
9+
#include "hdr/errno_macros.h"
1010
#include "src/math/rsqrtf16.h"
1111
#include "test/UnitTest/FPMatcher.h"
1212
#include "test/UnitTest/Test.h"
1313

1414
using LlvmLibcRsqrtf16Test = LIBC_NAMESPACE::testing::FPTest<float16>;
1515
TEST_F(LlvmLibcRsqrtf16Test, SpecialNumbers) {
16-
LIBC_NAMESPACE::libc_errno = 0;
1716
EXPECT_FP_EQ(aNaN, LIBC_NAMESPACE::rsqrtf16(aNaN));
1817
EXPECT_MATH_ERRNO(0);
1918

0 commit comments

Comments
 (0)