Skip to content

Commit

Permalink
Revert "[libc][math] Implement issignaling macro." (llvm#109992)
Browse files Browse the repository at this point in the history
Reverts llvm#109615
  • Loading branch information
lntue authored Sep 25, 2024
1 parent 88945db commit 808c498
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 176 deletions.
4 changes: 0 additions & 4 deletions libc/include/llvm-libc-macros/math-function-macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,5 @@
__builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, x)
#define isnormal(x) __builtin_isnormal(x)
#define issubnormal(x) (fpclassify(x) == FP_SUBNORMAL)
#if (defined(__clang__) && __clang_major__ >= 18) || \
(defined(__GNUC__) && __GNUC__ >= 13)
#define issignaling(x) __builtin_issignaling(x)
#endif

#endif // LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
45 changes: 0 additions & 45 deletions libc/test/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,36 +81,6 @@ add_libc_test(
libc.include.llvm-libc-macros.stdckdint_macros
)

add_libc_test(
issignaling_test
SUITE
libc_include_tests
SRCS
issignaling_test.cpp
DEPENDS
libc.include.llvm-libc-macros.math_function_macros
)

add_libc_test(
issignalingf_test
SUITE
libc_include_tests
SRCS
issignalingf_test.cpp
DEPENDS
libc.include.llvm-libc-macros.math_function_macros
)

add_libc_test(
issignalingl_test
SUITE
libc_include_tests
SRCS
issignalingl_test.cpp
DEPENDS
libc.include.llvm-libc-macros.math_function_macros
)

add_libc_test(
issubnormal_test
SUITE
Expand Down Expand Up @@ -396,21 +366,6 @@ add_libc_test(
libc.include.llvm-libc-macros.math_function_macros
)

add_libc_test(
issignaling_c_test
C_TEST
UNIT_TEST_ONLY
SUITE
libc_include_tests
SRCS
issignaling_test.c
COMPILE_OPTIONS
-Wall
-Werror
DEPENDS
libc.include.llvm-libc-macros.math_function_macros
)

add_libc_test(
isinf_c_test
C_TEST
Expand Down
49 changes: 0 additions & 49 deletions libc/test/include/IsSignalingTest.h

This file was deleted.

24 changes: 0 additions & 24 deletions libc/test/include/issignaling_test.c

This file was deleted.

18 changes: 0 additions & 18 deletions libc/test/include/issignaling_test.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions libc/test/include/issignalingf_test.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions libc/test/include/issignalingl_test.cpp

This file was deleted.

0 comments on commit 808c498

Please sign in to comment.