15 #ifndef LLVM_SUPPORT_FENV_H
16 #define LLVM_SUPPORT_FENV_H
18 #include "llvm/Config/config.h"
26 #if defined(__clang__) && defined(_GLIBCXX_FENV_H)
35 #if defined(HAVE_FENV_H) && HAVE_DECL_FE_ALL_EXCEPT
36 feclearexcept(FE_ALL_EXCEPT);
43 int errno_val = errno;
44 if (errno_val == ERANGE || errno_val == EDOM)
46 #if defined(HAVE_FENV_H) && HAVE_DECL_FE_ALL_EXCEPT && HAVE_DECL_FE_INEXACT
47 if (fetestexcept(FE_ALL_EXCEPT & ~FE_INEXACT))
static bool llvm_fenv_testexcept()
llvm_fenv_testexcept - Test if a floating-point exception was raised.
static void llvm_fenv_clearexcept()
llvm_fenv_clearexcept - Clear the floating-point exception state.