Files
clang-p2996/libc/fuzzing/math/CMakeLists.txt
Michael Jones c120edc7b3 [libc][nfc] move ctype_utils and FPUtils to __support
Some ctype functions are called from other libc functions (e.g. isspace
is used in atoi). By moving ctype_utils.h to __support it becomes easier
to include just the implementations of these functions. For these
reasons the implementation for isspace was moved into
ctype_utils as well.

FPUtils was moved to simplify the build order, and to clarify which
files are a part of the actual libc.

Many files were modified to accomodate these changes, mostly changing
the #include paths.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D107600
2021-08-06 17:29:41 +00:00

63 lines
1.4 KiB
CMake

add_libc_fuzzer(
math_differential_fuzz
SRCS
math_differential_fuzz.cpp
HDRS
Compare.h
RemQuoDiff.h
SingleInputSingleOutputDiff.h
TwoInputSingleOutputDiff.h
DEPENDS
libc.src.math.ceil
libc.src.math.ceilf
libc.src.math.ceill
libc.src.math.fdim
libc.src.math.fdimf
libc.src.math.fdiml
libc.src.math.floor
libc.src.math.floorf
libc.src.math.floorl
libc.src.math.frexp
libc.src.math.frexpf
libc.src.math.frexpl
libc.src.math.hypotf
libc.src.math.ldexp
libc.src.math.ldexpf
libc.src.math.ldexpl
libc.src.math.logb
libc.src.math.logbf
libc.src.math.logbl
libc.src.math.modf
libc.src.math.modff
libc.src.math.modfl
libc.src.math.sqrt
libc.src.math.sqrtf
libc.src.math.sqrtl
libc.src.math.remainder
libc.src.math.remainderf
libc.src.math.remainderl
libc.src.math.remquo
libc.src.math.remquof
libc.src.math.remquol
libc.src.math.round
libc.src.math.roundf
libc.src.math.roundl
libc.src.math.trunc
libc.src.math.truncf
libc.src.math.truncl
libc.src.__support.FPUtil.fputil
libc.utils.CPP.standalone_cpp
)
add_libc_fuzzer(
nextafter_differential_fuzz
SRCS
nextafter_differential_fuzz.cpp
HDRS
TwoInputSingleOutputDiff.h
DEPENDS
libc.src.math.nextafter
libc.src.math.nextafterf
libc.src.math.nextafterl
)