[libc] Add proxy header math_macros.h. (#87598)

Context: https://github.com/llvm/llvm-project/pull/87017

- Add proxy header `libc/hdr/math_macros.h` that will:
  - include `<math.h>` in overlay mode,
- include `"include/llvm-libc-macros/math-macros.h"` in full build mode.
- Its corresponding CMake target `libc.hdr.math_macros` will only depend
on `libc.include.math` and `libc.include.llvm-libc-macros.math_macros`
in full build mode.
- Replace all `#include "include/llvm-libc-macros/math-macros.h"` with
`#include "hdr/math_macros.h"`.
- Add dependency to `libc.hdr.math_macros` CMake target when using
`add_fp_unittest`.
- Update the remaining dependency.
- Update bazel overlay: add `libc:hdr_math_macros` target, and replacing
all dependency on `libc:llvm_libc_macros_math_macros` with
`libc:hdr_math_macros`.
This commit is contained in:
lntue
2024-04-05 18:21:16 -04:00
committed by GitHub
parent 3b337242ee
commit 5748ad84e5
147 changed files with 222 additions and 417 deletions

View File

@@ -381,6 +381,7 @@ endforeach()
add_subdirectory(include)
add_subdirectory(config)
add_subdirectory(hdr)
add_subdirectory(src)
add_subdirectory(utils)

View File

@@ -8,6 +8,7 @@ add_libc_fuzzer(
SingleInputSingleOutputDiff.h
TwoInputSingleOutputDiff.h
DEPENDS
libc.hdr.math_macros
libc.src.math.ceil
libc.src.math.ceilf
libc.src.math.ceill

View File

@@ -11,7 +11,7 @@
#include "src/__support/FPUtil/FPBits.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <stddef.h>
#include <stdint.h>

View File

@@ -22,6 +22,7 @@ add_libc_fuzzer(
SRCS
strtofloat_fuzz.cpp
DEPENDS
libc.hdr.math_macros
libc.src.stdlib.atof
libc.src.stdlib.strtof
libc.src.stdlib.strtod

View File

@@ -16,7 +16,7 @@
#include "src/__support/FPUtil/FPBits.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <stddef.h>
#include <stdint.h>

33
libc/hdr/CMakeLists.txt Normal file
View File

@@ -0,0 +1,33 @@
function(add_proxy_header_library target_name)
cmake_parse_arguments(
"ADD_PROXY_HEADER"
"" # Optional arguments
"" # Single value arguments
"DEPENDS;FULL_BUILD_DEPENDS" # Multi-value arguments
${ARGN}
)
set(deps "")
if(ADD_PROXY_HEADER_DEPENDS)
list(APPEND deps ${ADD_PROXY_HEADER_DEPENDS})
endif()
if(LLVM_LIBC_FULL_BUILD AND ADD_PROXY_HEADER_FULL_BUILD_DEPENDS)
list(APPEND deps ${ADD_PROXY_HEADER_FULL_BUILD_DEPENDS})
endif()
add_header_library(
${target_name}
${ADD_PROXY_HEADER_UNPARSED_ARGUMENTS}
DEPENDS ${deps}
)
endfunction()
add_proxy_header_library(
math_macros
HDRS
math_macros.h
FULL_BUILD_DEPENDS
libc.include.llvm-libc-macros.math_macros
libc.include.math
)

22
libc/hdr/math_macros.h Normal file
View File

@@ -0,0 +1,22 @@
//===-- Definition of macros from math.h ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_HDR_MATH_MACROS_H
#define LLVM_LIBC_HDR_MATH_MACROS_H
#ifdef LIBC_FULL_BUILD
#include "include/llvm-libc-macros/math-macros.h"
#else // Overlay mode
#include <math.h>
#endif // LLVM_LIBC_FULL_BUILD
#endif // LLVM_LIBC_HDR_MATH_MACROS_H

View File

@@ -9,11 +9,6 @@
#ifndef LLVM_LIBC_MACROS_MATH_MACROS_H
#define LLVM_LIBC_MACROS_MATH_MACROS_H
// TODO: Remove this. This is a temporary fix for a downstream problem.
// This cannot be left permanently since it would require downstream users to
// define this macro.
#ifdef LIBC_FULL_BUILD
#include "limits-macros.h"
#define FP_NAN 0
@@ -62,6 +57,7 @@
// the identifier, even in places with parentheses where a function-like macro
// will be expanded (such as a function declaration in a C++ namespace).
// TODO: Move generic functional math macros to a separate header file.
#ifdef __cplusplus
template <typename T> inline constexpr bool isfinite(T x) {
@@ -84,10 +80,4 @@ template <typename T> inline constexpr bool isnan(T x) {
#endif
#else // LIBC_FULL_BUILD
#include <math.h>
#endif // LIBC_FULL_BUILD
#endif // LLVM_LIBC_MACROS_MATH_MACROS_H

View File

@@ -4,7 +4,7 @@ add_header_library(
FEnvImpl.h
DEPENDS
libc.include.fenv
libc.include.math
libc.hdr.math_macros
libc.src.__support.macros.attributes
libc.src.errno.errno
)
@@ -15,7 +15,6 @@ add_header_library(
rounding_mode.h
DEPENDS
libc.include.fenv
libc.include.math
libc.src.__support.macros.attributes
libc.src.__support.macros.properties.architectures
libc.src.__support.macros.sanitizer
@@ -59,9 +58,9 @@ add_header_library(
.fp_bits
.fenv_impl
.rounding_mode
libc.hdr.math_macros
libc.src.__support.CPP.type_traits
libc.src.__support.common
libc.include.math
libc.src.errno.errno
)
@@ -216,12 +215,12 @@ add_header_library(
.dyadic_float
.nearest_integer_operations
.normal_float
libc.hdr.math_macros
libc.src.__support.CPP.bit
libc.src.__support.CPP.limits
libc.src.__support.CPP.type_traits
libc.src.__support.common
libc.src.__support.macros.optimization
libc.include.math
libc.src.errno.errno
)

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FENVIMPL_H
#define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FENVIMPL_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/macros/attributes.h" // LIBC_INLINE
#include "src/__support/macros/properties/architectures.h"
#include "src/errno/libc_errno.h"

View File

@@ -15,7 +15,7 @@
#include "dyadic_float.h"
#include "rounding_mode.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/CPP/limits.h" // INT_MAX, INT_MIN
#include "src/__support/CPP/type_traits.h"

View File

@@ -13,7 +13,7 @@
#include "FPBits.h"
#include "rounding_mode.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/type_traits.h"
#include "src/__support/common.h"

View File

@@ -102,8 +102,8 @@ add_object_library(
HDRS
math_utils.h
DEPENDS
libc.hdr.math_macros
libc.include.errno
libc.include.math
libc.src.errno.errno
)
@@ -139,7 +139,6 @@ add_entrypoint_object(
../cosf.h
DEPENDS
.sincosf_utils
libc.include.math
libc.src.errno.errno
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fenv_impl
@@ -162,7 +161,6 @@ add_entrypoint_object(
DEPENDS
.range_reduction
.sincosf_utils
libc.include.math
libc.src.errno.errno
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fenv_impl
@@ -185,7 +183,6 @@ add_entrypoint_object(
DEPENDS
.range_reduction
.sincosf_utils
libc.include.math
libc.src.errno.errno
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -207,7 +204,6 @@ add_entrypoint_object(
DEPENDS
.range_reduction
.sincosf_utils
libc.include.math
libc.src.errno.errno
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fenv_impl
@@ -770,7 +766,6 @@ add_entrypoint_object(
libc.src.__support.FPUtil.multiply_add
libc.src.__support.FPUtil.polyeval
libc.src.__support.macros.optimization
libc.include.math
COMPILE_OPTIONS
-O3
)
@@ -785,7 +780,6 @@ add_entrypoint_object(
.common_constants
.explogxf
libc.include.errno
libc.include.math
libc.src.__support.CPP.bit
libc.src.__support.CPP.optional
libc.src.__support.FPUtil.dyadic_float
@@ -821,7 +815,6 @@ add_entrypoint_object(
libc.src.__support.macros.optimization
libc.include.errno
libc.src.errno.errno
libc.include.math
COMPILE_OPTIONS
-O3
)
@@ -836,7 +829,6 @@ add_entrypoint_object(
.common_constants
.explogxf
libc.include.errno
libc.include.math
libc.src.__support.CPP.bit
libc.src.__support.CPP.optional
libc.src.__support.FPUtil.dyadic_float
@@ -871,7 +863,6 @@ add_header_library(
libc.src.__support.common
libc.include.errno
libc.src.errno.errno
libc.include.math
)
add_entrypoint_object(
@@ -917,7 +908,6 @@ add_entrypoint_object(
.common_constants
.explogxf
libc.include.errno
libc.include.math
libc.src.__support.CPP.bit
libc.src.__support.CPP.optional
libc.src.__support.FPUtil.dyadic_float
@@ -951,7 +941,6 @@ add_header_library(
libc.src.__support.common
libc.include.errno
libc.src.errno.errno
libc.include.math
COMPILE_OPTIONS
-O3
)
@@ -978,7 +967,6 @@ add_entrypoint_object(
.common_constants
.explogxf
libc.include.errno
libc.include.math
libc.src.__support.CPP.bit
libc.src.__support.CPP.optional
libc.src.__support.FPUtil.dyadic_float
@@ -1014,7 +1002,6 @@ add_entrypoint_object(
libc.src.__support.macros.optimization
libc.include.errno
libc.src.errno.errno
libc.include.math
COMPILE_OPTIONS
-O3
)
@@ -1031,7 +1018,6 @@ add_entrypoint_object(
.exp2f_impl
.explogxf
libc.include.errno
libc.include.math
libc.src.__support.CPP.bit
libc.src.__support.CPP.optional
libc.src.__support.FPUtil.fenv_impl
@@ -2755,7 +2741,6 @@ add_object_library(
libc.src.__support.common
libc.include.errno
libc.src.errno.errno
libc.include.math
COMPILE_OPTIONS
-O3
)

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_SRC_MATH_GENERIC_MATH_UTILS_H
#define LLVM_LIBC_SRC_MATH_GENERIC_MATH_UTILS_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/CPP/type_traits.h"
#include "src/__support/common.h"

View File

@@ -18,10 +18,6 @@ add_subdirectory(include)
add_subdirectory(src)
add_subdirectory(utils)
if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_BAREMETAL)
add_subdirectory(IntegrationTest)
endif()
if(NOT LLVM_LIBC_FULL_BUILD)
return()
endif()
@@ -31,4 +27,6 @@ if(NOT ${LIBC_TARGET_OS} STREQUAL "linux" AND
# Integration tests are currently only available for linux and the GPU.
return()
endif()
add_subdirectory(IntegrationTest)
add_subdirectory(integration)

View File

@@ -18,7 +18,7 @@
#include "test/UnitTest/StringUtils.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace LIBC_NAMESPACE {
namespace testing {

View File

@@ -3,7 +3,7 @@ function(add_fp_unittest name)
"MATH_UNITTEST"
"NEED_MPFR;UNIT_TEST_ONLY;HERMETIC_TEST_ONLY" # Optional arguments
"" # Single value arguments
"LINK_LIBRARIES" # Multi-value arguments
"LINK_LIBRARIES;DEPENDS" # Multi-value arguments
${ARGN}
)
@@ -28,11 +28,17 @@ function(add_fp_unittest name)
endif()
list(APPEND MATH_UNITTEST_LINK_LIBRARIES LibcFPTestHelpers)
set(deps libc.hdr.math_macros)
if(MATH_UNITTEST_DEPENDS)
list(APPEND deps ${MATH_UNITTEST_DEPENDS})
endif()
add_libc_test(
${name}
${test_type}
LINK_LIBRARIES "${MATH_UNITTEST_LINK_LIBRARIES}"
"${MATH_UNITTEST_UNPARSED_ARGUMENTS}"
DEPENDS "${deps}"
)
endfunction(add_fp_unittest)

View File

@@ -11,7 +11,7 @@
#include "src/__support/integer_literals.h" // parse_unsigned_bigint
#include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_INT128
#include "include/llvm-libc-macros/math-macros.h" // HUGE_VALF, HUGE_VALF
#include "hdr/math_macros.h" // HUGE_VALF, HUGE_VALF
#include "test/UnitTest/Test.h"
namespace LIBC_NAMESPACE {

View File

@@ -108,7 +108,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabs
libc.src.__support.FPUtil.fp_bits
)
@@ -123,7 +122,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabsf
libc.src.__support.FPUtil.fp_bits
)
@@ -138,7 +136,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabsl
libc.src.__support.FPUtil.fp_bits
)
@@ -153,7 +150,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.trunc
libc.src.__support.FPUtil.fp_bits
)
@@ -168,7 +164,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.truncf
libc.src.__support.FPUtil.fp_bits
)
@@ -183,7 +178,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.truncl
libc.src.__support.FPUtil.fp_bits
)
@@ -198,7 +192,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceil
libc.src.__support.FPUtil.fp_bits
)
@@ -213,7 +206,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceilf
libc.src.__support.FPUtil.fp_bits
)
@@ -228,7 +220,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceill
libc.src.__support.FPUtil.fp_bits
)
@@ -243,7 +234,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floor
libc.src.__support.FPUtil.fp_bits
)
@@ -258,7 +248,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floorf
libc.src.__support.FPUtil.fp_bits
)
@@ -273,7 +262,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floorl
libc.src.__support.FPUtil.fp_bits
)
@@ -288,7 +276,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.round
libc.src.__support.FPUtil.fp_bits
)
@@ -303,7 +290,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.roundf
libc.src.__support.FPUtil.fp_bits
)
@@ -318,7 +304,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.roundl
libc.src.__support.FPUtil.fp_bits
)
@@ -333,7 +318,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundeven
libc.src.__support.FPUtil.fp_bits
)
@@ -348,7 +332,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundevenf
libc.src.__support.FPUtil.fp_bits
)
@@ -363,7 +346,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundevenl
libc.src.__support.FPUtil.fp_bits
)
@@ -378,7 +360,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -397,7 +378,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -416,7 +396,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -435,7 +414,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -454,7 +432,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -473,7 +450,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -492,7 +468,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rint
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -508,7 +483,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rintf
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -524,7 +498,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rintl
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -540,7 +513,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrint
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -556,7 +528,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrintf
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -572,7 +543,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrintl
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -588,7 +558,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrint
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -604,7 +573,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrintf
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -620,7 +588,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrintl
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -635,7 +602,6 @@ add_fp_unittest(
expf_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.expf
libc.src.__support.FPUtil.fp_bits
)
@@ -649,7 +615,6 @@ add_fp_unittest(
exp_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp
libc.src.__support.FPUtil.fp_bits
)
@@ -663,7 +628,6 @@ add_fp_unittest(
exp2f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp2f
libc.src.__support.FPUtil.fp_bits
)
@@ -677,7 +641,6 @@ add_fp_unittest(
exp2_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp2
libc.src.__support.FPUtil.fp_bits
)
@@ -690,7 +653,6 @@ add_fp_unittest(
SRCS
exp2m1f_test.cpp
DEPENDS
libc.include.llvm-libc-macros.math_macros
libc.src.errno.errno
libc.src.math.exp2m1f
libc.src.__support.CPP.array
@@ -706,7 +668,6 @@ add_fp_unittest(
exp10f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp10f
libc.src.__support.FPUtil.fp_bits
)
@@ -720,7 +681,6 @@ add_fp_unittest(
exp10_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp10
libc.src.__support.FPUtil.fp_bits
)
@@ -734,7 +694,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysign
libc.src.__support.FPUtil.fp_bits
# FIXME: Currently fails on the GPU build.
@@ -750,7 +709,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysignf
libc.src.__support.FPUtil.fp_bits
# FIXME: Currently fails on the GPU build.
@@ -766,7 +724,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysignl
libc.src.__support.FPUtil.fp_bits
# FIXME: Currently fails on the GPU build.
@@ -783,7 +740,6 @@ add_fp_unittest(
HDRS
FrexpTest.h
DEPENDS
libc.include.math
libc.src.math.frexp
libc.src.__support.FPUtil.basic_operations
)
@@ -798,7 +754,6 @@ add_fp_unittest(
HDRS
FrexpTest.h
DEPENDS
libc.include.math
libc.src.math.frexpf
libc.src.__support.FPUtil.basic_operations
)
@@ -813,7 +768,6 @@ add_fp_unittest(
HDRS
FrexpTest.h
DEPENDS
libc.include.math
libc.src.math.frexpl
libc.src.__support.FPUtil.basic_operations
)
@@ -827,7 +781,6 @@ add_fp_unittest(
HDRS
ILogbTest.h
DEPENDS
libc.include.math
libc.src.math.ilogb
libc.src.__support.CPP.limits
libc.src.__support.FPUtil.fp_bits
@@ -843,7 +796,6 @@ add_fp_unittest(
HDRS
ILogbTest.h
DEPENDS
libc.include.math
libc.src.math.ilogbf
libc.src.__support.CPP.limits
libc.src.__support.FPUtil.fp_bits
@@ -859,7 +811,6 @@ add_fp_unittest(
HDRS
ILogbTest.h
DEPENDS
libc.include.math
libc.src.math.ilogbl
libc.src.__support.CPP.limits
libc.src.__support.FPUtil.fp_bits
@@ -875,7 +826,6 @@ add_fp_unittest(
HDRS
LdExpTest.h
DEPENDS
libc.include.math
libc.src.math.ldexp
libc.src.__support.CPP.limits
libc.src.__support.FPUtil.fp_bits
@@ -891,7 +841,6 @@ add_fp_unittest(
HDRS
LdExpTest.h
DEPENDS
libc.include.math
libc.src.math.ldexpf
libc.src.__support.CPP.limits
libc.src.__support.FPUtil.fp_bits
@@ -907,7 +856,6 @@ add_fp_unittest(
HDRS
LdExpTest.h
DEPENDS
libc.include.math
libc.src.math.ldexpl
libc.src.__support.CPP.limits
libc.src.__support.FPUtil.fp_bits
@@ -921,7 +869,6 @@ add_fp_unittest(
SRCS
logb_test.cpp
DEPENDS
libc.include.math
libc.src.math.logb
libc.src.__support.FPUtil.manipulation_functions
)
@@ -933,7 +880,6 @@ add_fp_unittest(
SRCS
logbf_test.cpp
DEPENDS
libc.include.math
libc.src.math.logbf
libc.src.__support.FPUtil.manipulation_functions
)
@@ -947,7 +893,6 @@ add_fp_unittest(
HDRS
LogbTest.h
DEPENDS
libc.include.math
libc.src.math.logbl
libc.src.__support.FPUtil.manipulation_functions
)
@@ -961,7 +906,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -978,7 +922,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modff
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -995,7 +938,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modfl
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -1010,7 +952,6 @@ add_fp_unittest(
HDRS
FDimTest.h
DEPENDS
libc.include.math
libc.src.math.fdimf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1025,7 +966,6 @@ add_fp_unittest(
HDRS
FDimTest.h
DEPENDS
libc.include.math
libc.src.math.fdim
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1040,7 +980,6 @@ add_fp_unittest(
HDRS
FDimTest.h
DEPENDS
libc.include.math
libc.src.math.fdiml
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1055,7 +994,6 @@ add_fp_unittest(
HDRS
FMinTest.h
DEPENDS
libc.include.math
libc.src.math.fminf
libc.src.__support.FPUtil.fp_bits
)
@@ -1069,7 +1007,6 @@ add_fp_unittest(
HDRS
FMinTest.h
DEPENDS
libc.include.math
libc.src.math.fmin
libc.src.__support.FPUtil.fp_bits
)
@@ -1083,7 +1020,6 @@ add_fp_unittest(
HDRS
FMinTest.h
DEPENDS
libc.include.math
libc.src.math.fminl
libc.src.__support.FPUtil.fp_bits
)
@@ -1097,7 +1033,6 @@ add_fp_unittest(
HDRS
FMaxTest.h
DEPENDS
libc.include.math
libc.src.math.fmaxf
libc.src.__support.FPUtil.fp_bits
)
@@ -1111,7 +1046,6 @@ add_fp_unittest(
HDRS
FMaxTest.h
DEPENDS
libc.include.math
libc.src.math.fmax
libc.src.__support.FPUtil.fp_bits
)
@@ -1125,7 +1059,6 @@ add_fp_unittest(
HDRS
FMaxTest.h
DEPENDS
libc.include.math
libc.src.math.fmaxl
libc.src.__support.FPUtil.fp_bits
)
@@ -1138,7 +1071,6 @@ add_fp_unittest(
SRCS
sqrtf_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrtf
libc.src.__support.FPUtil.fp_bits
)
@@ -1151,7 +1083,6 @@ add_fp_unittest(
SRCS
sqrt_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrt
libc.src.__support.FPUtil.fp_bits
)
@@ -1164,7 +1095,6 @@ add_fp_unittest(
SRCS
sqrtl_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrtl
libc.src.__support.FPUtil.fp_bits
)
@@ -1224,7 +1154,6 @@ add_fp_unittest(
HDRS
RemQuoTest.h
DEPENDS
libc.include.math
libc.src.math.remquof
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1240,7 +1169,6 @@ add_fp_unittest(
HDRS
RemQuoTest.h
DEPENDS
libc.include.math
libc.src.math.remquo
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1256,7 +1184,6 @@ add_fp_unittest(
HDRS
RemQuoTest.h
DEPENDS
libc.include.math
libc.src.math.remquol
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1270,7 +1197,6 @@ add_fp_unittest(
SRCS
hypotf_test.cpp
DEPENDS
libc.include.math
libc.src.math.hypotf
libc.src.__support.FPUtil.fp_bits
)
@@ -1283,7 +1209,6 @@ add_fp_unittest(
SRCS
hypot_test.cpp
DEPENDS
libc.include.math
libc.src.math.hypot
libc.src.__support.FPUtil.fp_bits
)
@@ -1297,7 +1222,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafter
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1312,7 +1236,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafterf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1327,7 +1250,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafterl
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1342,7 +1264,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafterf128
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -1358,7 +1279,6 @@ add_fp_unittest(
SRCS
fmaf_test.cpp
DEPENDS
libc.include.math
libc.src.math.fmaf
libc.src.__support.FPUtil.fp_bits
FLAGS
@@ -1373,7 +1293,6 @@ add_fp_unittest(
SRCS
fma_test.cpp
DEPENDS
libc.include.math
libc.src.math.fma
libc.src.__support.FPUtil.fp_bits
)
@@ -1399,7 +1318,6 @@ add_fp_unittest(
expm1f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.expm1f
libc.src.__support.FPUtil.fp_bits
)
@@ -1413,7 +1331,6 @@ add_fp_unittest(
expm1_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.expm1
libc.src.__support.FPUtil.fp_bits
)
@@ -1427,7 +1344,6 @@ add_fp_unittest(
log_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log
libc.src.__support.FPUtil.fp_bits
)
@@ -1441,7 +1357,6 @@ add_fp_unittest(
logf_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.logf
libc.src.__support.FPUtil.fp_bits
)
@@ -1455,7 +1370,6 @@ log2_test
log2_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log2
libc.src.__support.FPUtil.fp_bits
)
@@ -1469,7 +1383,6 @@ add_fp_unittest(
log2f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log2f
libc.src.__support.FPUtil.fp_bits
)
@@ -1483,7 +1396,6 @@ add_fp_unittest(
log10_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log10
libc.src.__support.FPUtil.fp_bits
)
@@ -1497,7 +1409,6 @@ add_fp_unittest(
log10f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log10f
libc.src.__support.FPUtil.fp_bits
)
@@ -1511,7 +1422,6 @@ log1p_test
log1p_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log1p
libc.src.__support.FPUtil.fp_bits
)
@@ -1525,7 +1435,6 @@ add_fp_unittest(
log1pf_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log1pf
libc.src.__support.FPUtil.fp_bits
)
@@ -1539,7 +1448,6 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.math.fmodf
libc.src.__support.FPUtil.basic_operations
@@ -1557,7 +1465,6 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.math.fmod
libc.src.__support.FPUtil.basic_operations
@@ -1576,7 +1483,6 @@ add_fp_unittest(
SRCS
explogxf_test.cpp
DEPENDS
libc.include.math
libc.src.math.generic.explogxf
libc.src.math.fabs
libc.src.math.fabsf
@@ -1715,7 +1621,6 @@ add_fp_unittest(
HDRS
ScalbnTest.h
DEPENDS
libc.include.math
libc.src.math.scalbn
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.normal_float
@@ -1731,7 +1636,6 @@ add_fp_unittest(
HDRS
ScalbnTest.h
DEPENDS
libc.include.math
libc.src.math.scalbnf
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.normal_float
@@ -1747,7 +1651,6 @@ add_fp_unittest(
HDRS
ScalbnTest.h
DEPENDS
libc.include.math
libc.src.math.scalbnl
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.normal_float
@@ -1761,7 +1664,6 @@ add_fp_unittest(
SRCS
erff_test.cpp
DEPENDS
libc.include.math
libc.src.math.erff
libc.src.__support.FPUtil.fp_bits
)
@@ -1774,7 +1676,6 @@ add_fp_unittest(
SRCS
powf_test.cpp
DEPENDS
libc.include.math
libc.src.math.powf
libc.src.__support.FPUtil.fp_bits
)
@@ -1787,7 +1688,6 @@ add_fp_unittest(
SRCS
atan2f_test.cpp
DEPENDS
libc.include.math
libc.src.math.atan2f
libc.src.__support.FPUtil.fp_bits
)

View File

@@ -10,7 +10,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -10,7 +10,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -6,7 +6,7 @@
//
//===---------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -14,7 +14,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#define TEST_SPECIAL(x, y, expected, dom_err, expected_exception) \
EXPECT_FP_EQ(expected, f(x, y)); \

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -11,7 +11,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -14,7 +14,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_ILOGBTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_ILOGBTEST_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/limits.h" // INT_MAX
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"

View File

@@ -15,7 +15,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <stdint.h>
template <typename T>

View File

@@ -11,7 +11,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/CPP/type_traits.h"
#include "src/__support/FPUtil/BasicOperations.h"

View File

@@ -15,7 +15,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <fenv.h>
#include <stdio.h>

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -15,7 +15,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <errno.h>
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -11,7 +11,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
namespace mpfr = LIBC_NAMESPACE::testing::mpfr;

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/acosf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/acoshf.h"

View File

@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/asinf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/asinhf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/atan2f.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/atanf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/atanhf.h"

View File

@@ -11,7 +11,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
using LlvmLibcCosTest = LIBC_NAMESPACE::testing::FPTest<double>;

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/cosf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/array.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/erff.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -16,7 +16,6 @@ add_fp_unittest(
sqrtf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.sqrtf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -33,7 +32,6 @@ add_fp_unittest(
sinf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.sinf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -50,7 +48,6 @@ add_fp_unittest(
cosf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.cosf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -67,7 +64,6 @@ add_fp_unittest(
sincosf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.sincosf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -84,7 +80,6 @@ add_fp_unittest(
tanf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.tanf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -101,7 +96,6 @@ add_fp_unittest(
erff_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.erff
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -118,7 +112,6 @@ add_fp_unittest(
expf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.expf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -135,7 +128,6 @@ add_fp_unittest(
exp2f_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.exp2f
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -167,7 +159,6 @@ add_fp_unittest(
exp10f_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.exp10f
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -184,7 +175,6 @@ add_fp_unittest(
expm1f_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.expm1f
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -201,7 +191,6 @@ add_fp_unittest(
logf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.logf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -218,7 +207,6 @@ add_fp_unittest(
log10f_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.log10f
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -235,7 +223,6 @@ add_fp_unittest(
log1pf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.log1pf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -252,7 +239,6 @@ add_fp_unittest(
log2f_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.log2f
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -271,7 +257,6 @@ add_fp_unittest(
-O3
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.hypotf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -302,7 +287,6 @@ add_fp_unittest(
coshf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.coshf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -319,7 +303,6 @@ add_fp_unittest(
sinhf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.sinhf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -336,7 +319,6 @@ add_fp_unittest(
tanhf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.tanhf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -353,7 +335,6 @@ add_fp_unittest(
acoshf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.acoshf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -370,7 +351,6 @@ add_fp_unittest(
asinhf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.asinhf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -387,7 +367,6 @@ add_fp_unittest(
atanhf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.atanhf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -404,7 +383,6 @@ add_fp_unittest(
atanf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.atanf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -421,7 +399,6 @@ add_fp_unittest(
asinf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.asinf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
@@ -438,7 +415,6 @@ add_fp_unittest(
acosf_test.cpp
DEPENDS
.exhaustive_test
libc.include.math
libc.src.math.acosf
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/exp10.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/exp10f.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/exp2.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include "src/errno/libc_errno.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/array.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/exp.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/expf.h"

View File

@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
#include "hdr/math_macros.h"
#include "in_float_range_test_helper.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/fabs.h"
#include "src/math/fabsf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/expm1.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/expm1f.h"

View File

@@ -8,7 +8,7 @@
#include "FDimTest.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/fdim.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -8,7 +8,7 @@
#include "FDimTest.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/fdimf.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -8,7 +8,7 @@
#include "FDimTest.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/fdiml.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -6,7 +6,6 @@ add_fp_unittest(
SRCS
../ceil_test.cpp
DEPENDS
libc.include.math
libc.src.math.generic.ceil
)
@@ -18,7 +17,6 @@ add_fp_unittest(
SRCS
../ceilf_test.cpp
DEPENDS
libc.include.math
libc.src.math.generic.ceilf
)
@@ -30,7 +28,6 @@ add_fp_unittest(
SRCS
../ceill_test.cpp
DEPENDS
libc.include.math
libc.src.math.generic.ceill
)

View File

@@ -8,7 +8,7 @@
#include "ILogbTest.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/math/ilogb.h"

View File

@@ -8,7 +8,7 @@
#include "ILogbTest.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/math/ilogbf.h"

View File

@@ -8,7 +8,7 @@
#include "ILogbTest.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/math/ilogbl.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/log10.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/log10f.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/log1p.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/log1pf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/log2.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/log2f.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/log.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/logf.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/math/powf.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/Test.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
using LlvmLibcSinTest = LIBC_NAMESPACE::testing::FPTest<double>;

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/sincosf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"
#include "src/math/sinf.h"

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/array.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/errno/libc_errno.h"

View File

@@ -62,7 +62,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabs
libc.src.__support.FPUtil.fp_bits
)
@@ -76,7 +75,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabsf
libc.src.__support.FPUtil.fp_bits
)
@@ -90,7 +88,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabsl
libc.src.__support.FPUtil.fp_bits
)
@@ -104,7 +101,6 @@ add_fp_unittest(
HDRS
FAbsTest.h
DEPENDS
libc.include.math
libc.src.math.fabsf128
libc.src.__support.FPUtil.fp_bits
)
@@ -118,7 +114,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.trunc
libc.src.__support.FPUtil.fp_bits
)
@@ -132,7 +127,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.truncf
libc.src.__support.FPUtil.fp_bits
)
@@ -146,7 +140,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.truncl
libc.src.__support.FPUtil.fp_bits
)
@@ -160,7 +153,6 @@ add_fp_unittest(
HDRS
TruncTest.h
DEPENDS
libc.include.math
libc.src.math.truncf128
libc.src.__support.FPUtil.fp_bits
)
@@ -174,7 +166,6 @@ add_fp_unittest(
HDRS
CanonicalizeTest.h
DEPENDS
libc.include.math
libc.src.math.canonicalize
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.fenv_impl
@@ -190,7 +181,6 @@ add_fp_unittest(
HDRS
CanonicalizeTest.h
DEPENDS
libc.include.math
libc.src.math.canonicalizef
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.fenv_impl
@@ -206,7 +196,6 @@ add_fp_unittest(
HDRS
CanonicalizeTest.h
DEPENDS
libc.include.math
libc.src.math.canonicalizef128
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.fenv_impl
@@ -222,7 +211,6 @@ add_fp_unittest(
HDRS
CanonicalizeTest.h
DEPENDS
libc.include.math
libc.src.math.canonicalizel
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.fenv_impl
@@ -238,7 +226,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceil
libc.src.__support.FPUtil.fp_bits
)
@@ -252,7 +239,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceilf
libc.src.__support.FPUtil.fp_bits
)
@@ -266,7 +252,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceill
libc.src.__support.FPUtil.fp_bits
)
@@ -280,7 +265,6 @@ add_fp_unittest(
HDRS
CeilTest.h
DEPENDS
libc.include.math
libc.src.math.ceilf128
libc.src.__support.FPUtil.fp_bits
)
@@ -294,7 +278,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floor
libc.src.__support.FPUtil.fp_bits
)
@@ -308,7 +291,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floorf
libc.src.__support.FPUtil.fp_bits
)
@@ -322,7 +304,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floorl
libc.src.__support.FPUtil.fp_bits
)
@@ -336,7 +317,6 @@ add_fp_unittest(
HDRS
FloorTest.h
DEPENDS
libc.include.math
libc.src.math.floorf128
libc.src.__support.FPUtil.fp_bits
)
@@ -350,7 +330,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.round
libc.src.__support.FPUtil.fp_bits
)
@@ -364,7 +343,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.roundf
libc.src.__support.FPUtil.fp_bits
)
@@ -378,7 +356,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.roundl
libc.src.__support.FPUtil.fp_bits
)
@@ -392,7 +369,6 @@ add_fp_unittest(
HDRS
RoundTest.h
DEPENDS
libc.include.math
libc.src.math.roundf128
libc.src.__support.FPUtil.fp_bits
)
@@ -406,7 +382,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundeven
libc.src.__support.FPUtil.fp_bits
)
@@ -420,7 +395,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundevenf
libc.src.__support.FPUtil.fp_bits
)
@@ -434,7 +408,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundevenl
libc.src.__support.FPUtil.fp_bits
)
@@ -448,7 +421,6 @@ add_fp_unittest(
HDRS
RoundEvenTest.h
DEPENDS
libc.include.math
libc.src.math.roundevenf128
libc.src.__support.FPUtil.fp_bits
)
@@ -462,7 +434,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -480,7 +451,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -498,7 +468,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -516,7 +485,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -534,7 +502,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -552,7 +519,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -570,7 +536,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -588,7 +553,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
@@ -606,7 +570,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rint
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -621,7 +584,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rintf
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -636,7 +598,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rintl
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -651,7 +612,6 @@ add_fp_unittest(
HDRS
RIntTest.h
DEPENDS
libc.include.math
libc.src.math.rintf128
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -666,7 +626,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrint
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -681,7 +640,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrintf
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -696,7 +654,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrintl
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -711,7 +668,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.lrintf128
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -726,7 +682,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrint
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -741,7 +696,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrintf
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -756,7 +710,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrintl
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -771,7 +724,6 @@ add_fp_unittest(
HDRS
RoundToIntegerTest.h
DEPENDS
libc.include.math
libc.src.math.llrintf128
libc.src.__support.FPUtil.fenv_impl
libc.src.__support.FPUtil.fp_bits
@@ -785,7 +737,6 @@ add_fp_unittest(
expf_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.expf
libc.src.__support.FPUtil.fp_bits
)
@@ -798,7 +749,6 @@ add_fp_unittest(
exp_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp
libc.src.__support.FPUtil.fp_bits
)
@@ -811,7 +761,6 @@ add_fp_unittest(
exp2f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp2f
libc.src.__support.FPUtil.fp_bits
)
@@ -824,7 +773,6 @@ add_fp_unittest(
exp2_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp2
libc.src.__support.FPUtil.fp_bits
)
@@ -848,7 +796,6 @@ add_fp_unittest(
exp10f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp10f
libc.src.__support.FPUtil.fp_bits
)
@@ -861,7 +808,6 @@ add_fp_unittest(
exp10_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.exp10
libc.src.__support.FPUtil.fp_bits
)
@@ -875,7 +821,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysign
libc.src.__support.FPUtil.fp_bits
)
@@ -889,7 +834,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysignf
libc.src.__support.FPUtil.fp_bits
)
@@ -903,7 +847,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysignl
libc.src.__support.FPUtil.fp_bits
)
@@ -917,7 +860,6 @@ add_fp_unittest(
HDRS
CopySignTest.h
DEPENDS
libc.include.math
libc.src.math.copysignf128
libc.src.__support.FPUtil.fp_bits
)
@@ -1397,7 +1339,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -1412,7 +1353,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modff
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -1427,7 +1367,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modfl
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -1442,7 +1381,6 @@ add_fp_unittest(
HDRS
ModfTest.h
DEPENDS
libc.include.math
libc.src.math.modff128
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -2033,7 +1971,6 @@ add_fp_unittest(
SRCS
sqrtf_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrtf
libc.src.__support.FPUtil.fp_bits
)
@@ -2045,7 +1982,6 @@ add_fp_unittest(
SRCS
sqrt_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrt
libc.src.__support.FPUtil.fp_bits
)
@@ -2057,7 +1993,6 @@ add_fp_unittest(
SRCS
sqrtl_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrtl
libc.src.__support.FPUtil.fp_bits
)
@@ -2069,7 +2004,6 @@ add_fp_unittest(
SRCS
sqrtf128_test.cpp
DEPENDS
libc.include.math
libc.src.math.sqrtf128
libc.src.__support.FPUtil.fp_bits
)
@@ -2139,7 +2073,6 @@ add_fp_unittest(
HDRS
RemQuoTest.h
DEPENDS
libc.include.math
libc.src.math.remquof
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2154,7 +2087,6 @@ add_fp_unittest(
HDRS
RemQuoTest.h
DEPENDS
libc.include.math
libc.src.math.remquo
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2169,7 +2101,6 @@ add_fp_unittest(
HDRS
RemQuoTest.h
DEPENDS
libc.include.math
libc.src.math.remquol
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2182,7 +2113,6 @@ add_fp_unittest(
SRCS
hypotf_test.cpp
DEPENDS
libc.include.math
libc.src.math.hypotf
libc.src.__support.FPUtil.fp_bits
)
@@ -2194,7 +2124,6 @@ add_fp_unittest(
SRCS
hypot_test.cpp
DEPENDS
libc.include.math
libc.src.math.hypot
libc.src.__support.FPUtil.fp_bits
)
@@ -2206,7 +2135,6 @@ add_fp_unittest(
SRCS
nanf_test.cpp
DEPENDS
libc.include.math
libc.include.signal
libc.src.math.nanf
libc.src.__support.FPUtil.fp_bits
@@ -2222,7 +2150,6 @@ add_fp_unittest(
SRCS
nan_test.cpp
DEPENDS
libc.include.math
libc.include.signal
libc.src.math.nan
libc.src.__support.FPUtil.fp_bits
@@ -2238,7 +2165,6 @@ add_fp_unittest(
SRCS
nanl_test.cpp
DEPENDS
libc.include.math
libc.include.signal
libc.src.math.nanl
libc.src.__support.FPUtil.fp_bits
@@ -2254,7 +2180,6 @@ add_fp_unittest(
SRCS
nanf128_test.cpp
DEPENDS
libc.include.math
libc.include.signal
libc.src.math.nanf128
libc.src.__support.FPUtil.fp_bits
@@ -2272,7 +2197,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafter
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2287,7 +2211,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafterf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2302,7 +2225,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafterl
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2317,7 +2239,6 @@ add_fp_unittest(
HDRS
NextAfterTest.h
DEPENDS
libc.include.math
libc.src.math.nextafterf128
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2334,7 +2255,6 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
HDRS
NextTowardTest.h
DEPENDS
libc.include.math
libc.src.math.nexttoward
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2349,7 +2269,6 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
HDRS
NextTowardTest.h
DEPENDS
libc.include.math
libc.src.math.nexttowardf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2365,7 +2284,6 @@ add_fp_unittest(
HDRS
NextTowardTest.h
DEPENDS
libc.include.math
libc.src.math.nexttowardl
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.fp_bits
@@ -2380,7 +2298,6 @@ add_fp_unittest(
HDRS
NextDownTest.h
DEPENDS
libc.include.math
libc.src.math.nextdown
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2394,7 +2311,6 @@ add_fp_unittest(
HDRS
NextDownTest.h
DEPENDS
libc.include.math
libc.src.math.nextdownf
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2408,7 +2324,6 @@ add_fp_unittest(
HDRS
NextDownTest.h
DEPENDS
libc.include.math
libc.src.math.nextdownl
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2422,7 +2337,6 @@ add_fp_unittest(
HDRS
NextDownTest.h
DEPENDS
libc.include.math
libc.src.math.nextdownf128
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2436,7 +2350,6 @@ add_fp_unittest(
HDRS
NextUpTest.h
DEPENDS
libc.include.math
libc.src.math.nextup
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2450,7 +2363,6 @@ add_fp_unittest(
HDRS
NextUpTest.h
DEPENDS
libc.include.math
libc.src.math.nextupf
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2464,7 +2376,6 @@ add_fp_unittest(
HDRS
NextUpTest.h
DEPENDS
libc.include.math
libc.src.math.nextupl
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2478,7 +2389,6 @@ add_fp_unittest(
HDRS
NextUpTest.h
DEPENDS
libc.include.math
libc.src.math.nextupf128
libc.src.__support.FPUtil.manipulation_functions
)
@@ -2492,7 +2402,6 @@ add_fp_unittest(
SRCS
fmaf_test.cpp
DEPENDS
libc.include.math
libc.src.math.fmaf
libc.src.__support.FPUtil.fp_bits
FLAGS
@@ -2506,7 +2415,6 @@ add_fp_unittest(
SRCS
fma_test.cpp
DEPENDS
libc.include.math
libc.src.math.fma
libc.src.__support.FPUtil.fp_bits
)
@@ -2519,7 +2427,6 @@ add_fp_unittest(
expm1f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.expm1f
libc.src.__support.FPUtil.fp_bits
)
@@ -2532,7 +2439,6 @@ add_fp_unittest(
expm1_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.expm1
libc.src.__support.FPUtil.fp_bits
)
@@ -2545,7 +2451,6 @@ add_fp_unittest(
log_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log
libc.src.__support.FPUtil.fp_bits
)
@@ -2558,7 +2463,6 @@ add_fp_unittest(
logf_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.logf
libc.src.__support.FPUtil.fp_bits
)
@@ -2571,7 +2475,6 @@ add_fp_unittest(
log2_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log2
libc.src.__support.FPUtil.fp_bits
)
@@ -2584,7 +2487,6 @@ add_fp_unittest(
log2f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log2f
libc.src.__support.FPUtil.fp_bits
)
@@ -2597,7 +2499,6 @@ add_fp_unittest(
log10_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log10
libc.src.__support.FPUtil.fp_bits
)
@@ -2610,7 +2511,6 @@ add_fp_unittest(
log10f_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log10f
libc.src.__support.FPUtil.fp_bits
)
@@ -2623,7 +2523,6 @@ add_fp_unittest(
log1p_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log1p
libc.src.__support.FPUtil.fp_bits
)
@@ -2636,7 +2535,6 @@ add_fp_unittest(
log1pf_test.cpp
DEPENDS
libc.src.errno.errno
libc.include.math
libc.src.math.log1pf
libc.src.__support.FPUtil.fp_bits
)
@@ -2650,7 +2548,6 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.math.fmodf
libc.src.__support.FPUtil.basic_operations
@@ -2668,7 +2565,6 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.math.fmod
libc.src.__support.FPUtil.basic_operations
@@ -2686,7 +2582,6 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.math.fmodl
libc.src.__support.FPUtil.basic_operations
@@ -2704,7 +2599,6 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
libc.include.math
libc.src.errno.errno
libc.src.math.fmodf128
libc.src.__support.FPUtil.basic_operations
@@ -2843,7 +2737,6 @@ add_fp_unittest(
HDRS
ScalbnTest.h
DEPENDS
libc.include.math
libc.src.math.scalbn
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.normal_float
@@ -2858,7 +2751,6 @@ add_fp_unittest(
HDRS
ScalbnTest.h
DEPENDS
libc.include.math
libc.src.math.scalbnf
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.normal_float
@@ -2873,7 +2765,6 @@ add_fp_unittest(
HDRS
ScalbnTest.h
DEPENDS
libc.include.math
libc.src.math.scalbnl
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.normal_float
@@ -2886,7 +2777,6 @@ add_fp_unittest(
SRCS
erff_test.cpp
DEPENDS
libc.include.math
libc.src.math.erff
libc.src.__support.FPUtil.fp_bits
)
@@ -2898,7 +2788,6 @@ add_fp_unittest(
SRCS
powf_test.cpp
DEPENDS
libc.include.math
libc.src.math.powf
libc.src.__support.FPUtil.fp_bits
)

View File

@@ -14,7 +14,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#define TEST_SPECIAL(x, y, expected, expected_exception) \
EXPECT_EQ(expected, f(&x, &y)); \

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T> class CeilTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T>
class CopySignTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T> class FAbsTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -14,7 +14,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#define TEST_SPECIAL(x, y, expected, dom_err, expected_exception) \
EXPECT_FP_EQ(expected, f(x, y)); \

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T> class FloorTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -13,7 +13,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T>
class HypotTestTemplate : public LIBC_NAMESPACE::testing::Test {

View File

@@ -11,7 +11,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T> class ModfTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/CPP/type_traits.h"
#include "src/__support/FPUtil/BasicOperations.h"

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_NEXTTOWARDTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_NEXTTOWARDTEST_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/CPP/type_traits.h"
#include "src/__support/FPUtil/BasicOperations.h"

View File

@@ -14,7 +14,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <fenv.h>
#include <stdio.h>

View File

@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "test/UnitTest/FPMatcher.h"

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T>
class RoundEvenTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -12,7 +12,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T> class RoundTest : public LIBC_NAMESPACE::testing::Test {

View File

@@ -14,7 +14,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
#include <errno.h>
static constexpr int ROUNDING_MODES[4] = {FE_UPWARD, FE_DOWNWARD, FE_TOWARDZERO,

View File

@@ -10,7 +10,7 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
#include "include/llvm-libc-macros/math-macros.h"
#include "hdr/math_macros.h"
template <typename T> class SqrtTest : public LIBC_NAMESPACE::testing::Test {

Some files were not shown because too many files have changed in this diff Show More