Debian Codegraph @

headers/cfenv

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_CFENV_H
17 #define CPPREFERENCE_CFENV_H
18
19 namespace std {
20
21 #define FE_DIVBYZERO 0
22 #define FE_INEXACT 0
23 #define FE_INVALID 0
24 #define FE_OVERFLOW 0
25 #define FE_UNDERFLOW 0
26 #define FE_ALL_EXCEPT 0
27 #define FE_DOWNWARD 0
28 #define FE_TONEAREST 0
29 #define FE_TOWARDZERO 0
30 #define FE_UPWARD 0
31 #define FE_DFL_ENV 0
32
33 struct fenv_t;
34 struct fexcept_t;
35
36 int feclearexcept(int excepts);
37 int fetestexcept(int excepts);
38 int feraiseexcept(int excepts);
39 int fegetexceptflag(fexcept_t* flagp, int excepts);
40 int fesetexceptflag(const fexcept_t* flagp, int excepts);
41 int fesetround(int round);
42 int fegetround();
43 int fegetenv(fenv_t* envp);
44 int fesetenv(const fenv_t* envp);
45 int feholdexcept(fenv_t* envp);
46 int feupdateenv(const fenv_t* envp);
47
48 } // namespace std
49
50 #endif // CPPREFERENCE_CFENV_H