brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · d7ea770 Raw
96 lines · plain
1// -*- C++ -*-2//===----------------------------------------------------------------------===//3//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-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCPP_CFENV11#define _LIBCPP_CFENV12 13/*14    cfenv synopsis15 16This entire header is C99 / C++0X17 18Macros:19 20    FE_DIVBYZERO21    FE_INEXACT22    FE_INVALID23    FE_OVERFLOW24    FE_UNDERFLOW25    FE_ALL_EXCEPT26    FE_DOWNWARD27    FE_TONEAREST28    FE_TOWARDZERO29    FE_UPWARD30    FE_DFL_ENV31 32namespace std33{34 35Types:36 37    fenv_t38    fexcept_t39 40int feclearexcept(int excepts);41int fegetexceptflag(fexcept_t* flagp, int excepts);42int feraiseexcept(int excepts);43int fesetexceptflag(const fexcept_t* flagp, int excepts);44int fetestexcept(int excepts);45int fegetround();46int fesetround(int round);47int fegetenv(fenv_t* envp);48int feholdexcept(fenv_t* envp);49int fesetenv(const fenv_t* envp);50int feupdateenv(const fenv_t* envp);51 52}  // std53*/54 55#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)56#  include <__cxx03/cfenv>57#else58#  include <__config>59 60#  include <fenv.h>61 62#  ifndef _LIBCPP_FENV_H63#   error <cfenv> tried including <fenv.h> but didn't find libc++'s <fenv.h> header. \64          This usually means that your header search paths are not configured properly. \65          The header search paths should contain the C++ Standard Library headers before \66          any C Standard Library, and you are probably using compiler flags that make that \67          not be the case.68#  endif69 70#  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)71#    pragma GCC system_header72#  endif73 74_LIBCPP_BEGIN_NAMESPACE_STD75 76using ::fenv_t _LIBCPP_USING_IF_EXISTS;77using ::fexcept_t _LIBCPP_USING_IF_EXISTS;78 79using ::feclearexcept _LIBCPP_USING_IF_EXISTS;80using ::fegetexceptflag _LIBCPP_USING_IF_EXISTS;81using ::feraiseexcept _LIBCPP_USING_IF_EXISTS;82using ::fesetexceptflag _LIBCPP_USING_IF_EXISTS;83using ::fetestexcept _LIBCPP_USING_IF_EXISTS;84using ::fegetround _LIBCPP_USING_IF_EXISTS;85using ::fesetround _LIBCPP_USING_IF_EXISTS;86using ::fegetenv _LIBCPP_USING_IF_EXISTS;87using ::feholdexcept _LIBCPP_USING_IF_EXISTS;88using ::fesetenv _LIBCPP_USING_IF_EXISTS;89using ::feupdateenv _LIBCPP_USING_IF_EXISTS;90 91_LIBCPP_END_NAMESPACE_STD92 93#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)94 95#endif // _LIBCPP_CFENV96