2021-05-05 23:52:42 +08:00
|
|
|
if(${LIBC_TARGET_ARCHITECTURE_IS_X86})
|
2020-06-09 02:11:49 +08:00
|
|
|
set(LONG_DOUBLE_HDR LongDoubleBitsX86.h)
|
|
|
|
else()
|
|
|
|
set(LONG_DOUBLE_HDR)
|
|
|
|
endif()
|
|
|
|
|
2021-05-05 23:52:42 +08:00
|
|
|
if(EXISTS ${LIBC_TARGET_ARCHITECTURE})
|
|
|
|
set(FENV_IMPL ${LIBC_TARGET_ARCHITECTURE}/FEnv.h)
|
2020-12-02 03:39:48 +08:00
|
|
|
else()
|
|
|
|
set(FENV_IMPL DummyFEnv.h)
|
|
|
|
endif()
|
|
|
|
|
2020-05-08 14:19:09 +08:00
|
|
|
add_header_library(
|
|
|
|
fputil
|
|
|
|
HDRS
|
2020-06-09 02:11:49 +08:00
|
|
|
${LONG_DOUBLE_HDR}
|
2020-12-02 03:39:48 +08:00
|
|
|
${FENV_IMPL}
|
2020-07-17 15:08:28 +08:00
|
|
|
BasicOperations.h
|
2020-08-18 07:24:45 +08:00
|
|
|
DivisionAndRemainderOperations.h
|
2020-12-02 03:39:48 +08:00
|
|
|
FEnv.h
|
2020-05-08 14:19:09 +08:00
|
|
|
FloatProperties.h
|
2020-06-09 02:11:49 +08:00
|
|
|
FPBits.h
|
2020-07-10 03:30:29 +08:00
|
|
|
BasicOperations.h
|
2020-06-03 05:04:57 +08:00
|
|
|
ManipulationFunctions.h
|
2020-07-17 15:08:28 +08:00
|
|
|
NearestIntegerOperations.h
|
2020-08-19 16:08:03 +08:00
|
|
|
NormalFloat.h
|
2021-06-18 15:23:15 +08:00
|
|
|
PlatformDefs.h
|
2021-04-23 12:38:59 +08:00
|
|
|
PolyEval.h
|
2020-06-09 02:11:49 +08:00
|
|
|
DEPENDS
|
2020-11-04 08:30:16 +08:00
|
|
|
libc.include.math
|
2020-12-09 13:44:22 +08:00
|
|
|
libc.include.errno
|
|
|
|
libc.include.fenv
|
2021-03-09 07:12:22 +08:00
|
|
|
libc.src.__support.common
|
2020-05-08 14:19:09 +08:00
|
|
|
libc.utils.CPP.standalone_cpp
|
|
|
|
)
|
2020-08-06 15:19:08 +08:00
|
|
|
|
2021-06-09 07:04:11 +08:00
|
|
|
add_library(
|
2020-08-06 15:19:08 +08:00
|
|
|
LibcFPTestHelpers
|
|
|
|
TestHelpers.cpp
|
|
|
|
TestHelpers.h
|
|
|
|
)
|
|
|
|
target_include_directories(LibcFPTestHelpers PUBLIC ${LIBC_SOURCE_DIR})
|
2021-06-09 07:04:11 +08:00
|
|
|
target_link_libraries(LibcFPTestHelpers LibcUnitTest)
|
2020-08-06 15:19:08 +08:00
|
|
|
add_dependencies(
|
|
|
|
LibcFPTestHelpers
|
|
|
|
LibcUnitTest
|
|
|
|
libc.utils.CPP.standalone_cpp
|
|
|
|
libc.utils.FPUtil.fputil
|
|
|
|
)
|