Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:14:08

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP_FENV_H
0011 #define _LIBCPP_FENV_H
0012 
0013 /*
0014     fenv.h synopsis
0015 
0016 This entire header is C99 / C++0X
0017 
0018 Macros:
0019 
0020     FE_DIVBYZERO
0021     FE_INEXACT
0022     FE_INVALID
0023     FE_OVERFLOW
0024     FE_UNDERFLOW
0025     FE_ALL_EXCEPT
0026     FE_DOWNWARD
0027     FE_TONEAREST
0028     FE_TOWARDZERO
0029     FE_UPWARD
0030     FE_DFL_ENV
0031 
0032 Types:
0033 
0034     fenv_t
0035     fexcept_t
0036 
0037 int feclearexcept(int excepts);
0038 int fegetexceptflag(fexcept_t* flagp, int excepts);
0039 int feraiseexcept(int excepts);
0040 int fesetexceptflag(const fexcept_t* flagp, int excepts);
0041 int fetestexcept(int excepts);
0042 int fegetround();
0043 int fesetround(int round);
0044 int fegetenv(fenv_t* envp);
0045 int feholdexcept(fenv_t* envp);
0046 int fesetenv(const fenv_t* envp);
0047 int feupdateenv(const fenv_t* envp);
0048 
0049 
0050 */
0051 
0052 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0053 #  include <__cxx03/fenv.h>
0054 #else
0055 #  include <__config>
0056 
0057 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0058 #    pragma GCC system_header
0059 #  endif
0060 
0061 #  if __has_include_next(<fenv.h>)
0062 #    include_next <fenv.h>
0063 #  endif
0064 
0065 #  ifdef __cplusplus
0066 
0067 extern "C++" {
0068 
0069 #    ifdef feclearexcept
0070 #      undef feclearexcept
0071 #    endif
0072 
0073 #    ifdef fegetexceptflag
0074 #      undef fegetexceptflag
0075 #    endif
0076 
0077 #    ifdef feraiseexcept
0078 #      undef feraiseexcept
0079 #    endif
0080 
0081 #    ifdef fesetexceptflag
0082 #      undef fesetexceptflag
0083 #    endif
0084 
0085 #    ifdef fetestexcept
0086 #      undef fetestexcept
0087 #    endif
0088 
0089 #    ifdef fegetround
0090 #      undef fegetround
0091 #    endif
0092 
0093 #    ifdef fesetround
0094 #      undef fesetround
0095 #    endif
0096 
0097 #    ifdef fegetenv
0098 #      undef fegetenv
0099 #    endif
0100 
0101 #    ifdef feholdexcept
0102 #      undef feholdexcept
0103 #    endif
0104 
0105 #    ifdef fesetenv
0106 #      undef fesetenv
0107 #    endif
0108 
0109 #    ifdef feupdateenv
0110 #      undef feupdateenv
0111 #    endif
0112 
0113 } // extern "C++"
0114 
0115 #  endif // defined(__cplusplus)
0116 #endif   // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0117 
0118 #endif // _LIBCPP_FENV_H