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 //===----------------------------------------------------------------------===//
16 This entire header is C99 / C++0X
40 int feclearexcept(int excepts);
41 int fegetexceptflag(fexcept_t* flagp, int excepts);
42 int feraiseexcept(int excepts);
43 int fesetexceptflag(const fexcept_t* flagp, int excepts);
44 int fetestexcept(int excepts);
46 int fesetround(int round);
47 int fegetenv(fenv_t* envp);
48 int feholdexcept(fenv_t* envp);
49 int fesetenv(const fenv_t* envp);
50 int feupdateenv(const fenv_t* envp);
55 #include <__assert> // all public C++ headers provide the assertion handler
59 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
60 # pragma GCC system_header
63 _LIBCPP_BEGIN_NAMESPACE_STD
65 using ::fenv_t _LIBCPP_USING_IF_EXISTS;
66 using ::fexcept_t _LIBCPP_USING_IF_EXISTS;
68 using ::feclearexcept _LIBCPP_USING_IF_EXISTS;
69 using ::fegetexceptflag _LIBCPP_USING_IF_EXISTS;
70 using ::feraiseexcept _LIBCPP_USING_IF_EXISTS;
71 using ::fesetexceptflag _LIBCPP_USING_IF_EXISTS;
72 using ::fetestexcept _LIBCPP_USING_IF_EXISTS;
73 using ::fegetround _LIBCPP_USING_IF_EXISTS;
74 using ::fesetround _LIBCPP_USING_IF_EXISTS;
75 using ::fegetenv _LIBCPP_USING_IF_EXISTS;
76 using ::feholdexcept _LIBCPP_USING_IF_EXISTS;
77 using ::fesetenv _LIBCPP_USING_IF_EXISTS;
78 using ::feupdateenv _LIBCPP_USING_IF_EXISTS;
80 _LIBCPP_END_NAMESPACE_STD
82 #endif // _LIBCPP_CFENV