[libc][math] Set floating point exceptions for exp*f, sinhf, and coshf.
authorTue Ly <lntue@google.com>
Sun, 19 Feb 2023 02:33:46 +0000 (21:33 -0500)
committerTue Ly <lntue@google.com>
Fri, 24 Feb 2023 17:56:39 +0000 (12:56 -0500)
commit0aa9593c2f14d73f9b5ce0357df3c62b0bf9dea4
treee63ac446e4a6054853a88a415981f369c867e787
parent3caa427f8ecbf9f5845c15b53e1021db94b3db03
[libc][math] Set floating point exceptions for exp*f, sinhf, and coshf.

Set FE_OVERFLOW and FE_UNDERFLOW for expf, exp2f, exp10f, expm1f, sinhf
and coshf.

Reviewed By: sivachandra, renyichen

Differential Revision: https://reviews.llvm.org/D144340
20 files changed:
libc/src/__support/FPUtil/CMakeLists.txt
libc/src/__support/FPUtil/FEnvImpl.h
libc/src/math/generic/acosf.cpp
libc/src/math/generic/asinf.cpp
libc/src/math/generic/cosf.cpp
libc/src/math/generic/coshf.cpp
libc/src/math/generic/exp10f.cpp
libc/src/math/generic/exp2f.cpp
libc/src/math/generic/expf.cpp
libc/src/math/generic/expm1f.cpp
libc/src/math/generic/sincosf.cpp
libc/src/math/generic/sinf.cpp
libc/src/math/generic/sinhf.cpp
libc/src/math/generic/tanf.cpp
libc/test/src/math/coshf_test.cpp
libc/test/src/math/exp10f_test.cpp
libc/test/src/math/exp2f_test.cpp
libc/test/src/math/expf_test.cpp
libc/test/src/math/expm1f_test.cpp
libc/test/src/math/sinhf_test.cpp