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