2 //===---------------------------- math.h ----------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_FENV_H
11 #define _LIBCPP_FENV_H
17 This entire header is C99 / C++0X
38 int feclearexcept(int excepts);
39 int fegetexceptflag(fexcept_t* flagp, int excepts);
40 int feraiseexcept(int excepts);
41 int fesetexceptflag(const fexcept_t* flagp, int excepts);
42 int fetestexcept(int excepts);
44 int fesetround(int round);
45 int fegetenv(fenv_t* envp);
46 int feholdexcept(fenv_t* envp);
47 int fesetenv(const fenv_t* envp);
48 int feupdateenv(const fenv_t* envp);
55 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
56 #pragma GCC system_header
59 #include_next <fenv.h>
69 #ifdef fegetexceptflag
70 #undef fegetexceptflag
78 #ifdef fesetexceptflag
79 #undef fesetexceptflag
114 #endif // defined(__cplusplus)
116 #endif // _LIBCPP_FENV_H