cfenv revision 287679
1276792Sdim// -*- C++ -*- 2276792Sdim//===---------------------------- cctype ----------------------------------===// 3276792Sdim// 4276792Sdim// The LLVM Compiler Infrastructure 5276792Sdim// 6276792Sdim// This file is dual licensed under the MIT and the University of Illinois Open 7276792Sdim// Source Licenses. See LICENSE.TXT for details. 8276792Sdim// 9276792Sdim//===----------------------------------------------------------------------===// 10276792Sdim 11276792Sdim#ifndef _LIBCPP_CFENV 12276792Sdim#define _LIBCPP_CFENV 13276792Sdim 14276792Sdim/* 15276792Sdim cfenv synopsis 16276792Sdim 17276792SdimThis entire header is C99 / C++0X 18276792Sdim 19276792SdimMacros: 20276792Sdim 21276792Sdim FE_DIVBYZERO 22276792Sdim FE_INEXACT 23276792Sdim FE_INVALID 24276792Sdim FE_OVERFLOW 25276792Sdim FE_UNDERFLOW 26276792Sdim FE_ALL_EXCEPT 27276792Sdim FE_DOWNWARD 28276792Sdim FE_TONEAREST 29276792Sdim FE_TOWARDZERO 30276792Sdim FE_UPWARD 31276792Sdim FE_DFL_ENV 32276792Sdim 33276792Sdimnamespace std 34288943Sdim{ 35288943Sdim 36276792SdimTypes: 37288943Sdim 38288943Sdim fenv_t 39288943Sdim fexcept_t 40276792Sdim 41276792Sdimint feclearexcept(int excepts); 42276792Sdimint fegetexceptflag(fexcept_t* flagp, int excepts); 43276792Sdimint feraiseexcept(int excepts); 44276792Sdimint fesetexceptflag(const fexcept_t* flagp, int excepts); 45276792Sdimint fetestexcept(int excepts); 46276792Sdimint fegetround(); 47276792Sdimint 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#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 60#pragma GCC system_header 61#endif 62 63_LIBCPP_BEGIN_NAMESPACE_STD 64 65using ::fenv_t; 66using ::fexcept_t; 67 68using ::feclearexcept; 69using ::fegetexceptflag; 70using ::feraiseexcept; 71using ::fesetexceptflag; 72using ::fetestexcept; 73using ::fegetround; 74using ::fesetround; 75using ::fegetenv; 76using ::feholdexcept; 77using ::fesetenv; 78using ::feupdateenv; 79 80_LIBCPP_END_NAMESPACE_STD 81 82#endif // _LIBCPP_CFENV 83