2020-06-09 02:11:49 +08:00
|
|
|
if(${LIBC_TARGET_MACHINE} MATCHES "^x86.*")
|
|
|
|
set(LONG_DOUBLE_HDR LongDoubleBitsX86.h)
|
|
|
|
else()
|
|
|
|
set(LONG_DOUBLE_HDR)
|
|
|
|
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-07-17 15:08:28 +08:00
|
|
|
BasicOperations.h
|
2020-05-08 14:19:09 +08:00
|
|
|
BitPatterns.h
|
2020-07-17 15:08:28 +08:00
|
|
|
ClassificationFunctions.h
|
2020-08-18 07:24:45 +08:00
|
|
|
DivisionAndRemainderOperations.h
|
2020-05-08 14:19:09 +08:00
|
|
|
FloatOperations.h
|
|
|
|
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
|
2020-06-09 02:11:49 +08:00
|
|
|
DEPENDS
|
2020-05-08 14:19:09 +08:00
|
|
|
libc.utils.CPP.standalone_cpp
|
|
|
|
)
|
2020-08-06 15:19:08 +08:00
|
|
|
|
|
|
|
add_llvm_library(
|
|
|
|
LibcFPTestHelpers
|
|
|
|
TestHelpers.cpp
|
|
|
|
TestHelpers.h
|
|
|
|
)
|
|
|
|
target_include_directories(LibcFPTestHelpers PUBLIC ${LIBC_SOURCE_DIR})
|
|
|
|
target_link_libraries(LibcFPTestHelpers LibcUnitTest LLVMSupport)
|
|
|
|
add_dependencies(
|
|
|
|
LibcFPTestHelpers
|
|
|
|
LibcUnitTest
|
|
|
|
libc.utils.CPP.standalone_cpp
|
|
|
|
libc.utils.FPUtil.fputil
|
|
|
|
)
|