2 //===----------------------------------------------------------------------===//
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
16 This entire header is C99 / C++0X
37 int feclearexcept(int excepts);
38 int fegetexceptflag(fexcept_t* flagp, int excepts);
39 int feraiseexcept(int excepts);
40 int fesetexceptflag(const fexcept_t* flagp, int excepts);
41 int fetestexcept(int excepts);
43 int fesetround(int round);
44 int fegetenv(fenv_t* envp);
45 int feholdexcept(fenv_t* envp);
46 int fesetenv(const fenv_t* envp);
47 int feupdateenv(const fenv_t* envp);
54 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
55 # pragma GCC system_header
58 #if __has_include_next(<fenv.h>)
59 # include_next <fenv.h>
70 # ifdef fegetexceptflag
71 # undef fegetexceptflag
78 # ifdef fesetexceptflag
79 # undef fesetexceptflag
112 #endif // defined(__cplusplus)
114 #endif // _LIBCPP_FENV_H