Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:46

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___CXX03_FENV_H
0011 #define _LIBCPP___CXX03_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 #include <__cxx03/__config>
0053 
0054 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0055 #  pragma GCC system_header
0056 #endif
0057 
0058 #if __has_include_next(<fenv.h>)
0059 #  include_next <fenv.h>
0060 #endif
0061 
0062 #ifdef __cplusplus
0063 
0064 extern "C++" {
0065 
0066 #  ifdef feclearexcept
0067 #    undef feclearexcept
0068 #  endif
0069 
0070 #  ifdef fegetexceptflag
0071 #    undef fegetexceptflag
0072 #  endif
0073 
0074 #  ifdef feraiseexcept
0075 #    undef feraiseexcept
0076 #  endif
0077 
0078 #  ifdef fesetexceptflag
0079 #    undef fesetexceptflag
0080 #  endif
0081 
0082 #  ifdef fetestexcept
0083 #    undef fetestexcept
0084 #  endif
0085 
0086 #  ifdef fegetround
0087 #    undef fegetround
0088 #  endif
0089 
0090 #  ifdef fesetround
0091 #    undef fesetround
0092 #  endif
0093 
0094 #  ifdef fegetenv
0095 #    undef fegetenv
0096 #  endif
0097 
0098 #  ifdef feholdexcept
0099 #    undef feholdexcept
0100 #  endif
0101 
0102 #  ifdef fesetenv
0103 #    undef fesetenv
0104 #  endif
0105 
0106 #  ifdef feupdateenv
0107 #    undef feupdateenv
0108 #  endif
0109 
0110 } // extern "C++"
0111 
0112 #endif // defined(__cplusplus)
0113 
0114 #endif // _LIBCPP___CXX03_FENV_H