1// -*- C++ -*- 2//===---------------------------- cctype ----------------------------------===// 3// 4// The LLVM Compiler Infrastructure 5// 6// This file is dual licensed under the MIT and the University of Illinois Open 7// Source Licenses. See LICENSE.TXT for details. 8// 9//===----------------------------------------------------------------------===// 10 11#ifndef _LIBCPP_CFENV 12#define _LIBCPP_CFENV 13 14/* 15 cfenv synopsis 16 17This entire header is C99 / C++0X 18 19Macros: 20 21 FE_DIVBYZERO 22 FE_INEXACT 23 FE_INVALID 24 FE_OVERFLOW 25 FE_UNDERFLOW 26 FE_ALL_EXCEPT 27 FE_DOWNWARD 28 FE_TONEAREST 29 FE_TOWARDZERO 30 FE_UPWARD 31 FE_DFL_ENV 32 33namespace std 34{ 35 36Types: 37 38 fenv_t 39 fexcept_t 40 41int feclearexcept(int excepts); 42int fegetexceptflag(fexcept_t* flagp, int excepts); 43int feraiseexcept(int excepts); 44int fesetexceptflag(const fexcept_t* flagp, int excepts); 45int fetestexcept(int excepts); 46int fegetround(); 47int fesetround(int round); 48int fegetenv(fenv_t* envp); 49int feholdexcept(fenv_t* envp); 50int fesetenv(const fenv_t* envp); 51int feupdateenv(const fenv_t* envp); 52 53} // std 54*/ 55 56#include <__config> 57#include <fenv.h> 58 59#pragma GCC system_header 60 61_LIBCPP_BEGIN_NAMESPACE_STD 62 63using ::fenv_t; 64using ::fexcept_t; 65 66using ::feclearexcept; 67using ::fegetexceptflag; 68using ::feraiseexcept; 69using ::fesetexceptflag; 70using ::fetestexcept; 71using ::fegetround; 72using ::fesetround; 73using ::fegetenv; 74using ::feholdexcept; 75using ::fesetenv; 76using ::feupdateenv; 77 78_LIBCPP_END_NAMESPACE_STD 79 80#endif // _LIBCPP_CFENV 81