source: CIVL/include/headers/fenv.h@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 824 bytes
Line 
1/* The fenv.h header declares types and functions that provide
2 * access to the floating-point environment.
3 */
4#ifndef _FENV_
5#define _FENV_
6
7/* Macros */
8#define FE_DIVBYZERO 0
9#define FE_INEXACT 1
10#define FE_INVALID 2
11#define FE_OVERFLOW 3
12#define FE_UNDERFLOW 4
13#define FE_ALL_EXCEPT 5
14
15#define FE_DOWNWARD 6
16#define FE_TONEAREST 7
17#define FE_TOWARDZERO 8
18#define FE_UPWARD 9
19
20#define FE_DFL_ENV 10
21
22/* Types */
23typedef struct fenv_t fenv_t;
24typedef long int fexcept_t;
25
26/* Functions */
27int feclearexcept(int);
28int fegetexceptflag(fexcept_t *, int);
29int feraiseexcept(int);
30int fesetexceptflag(const fexcept_t *, int);
31int fetestexcept(int);
32int fegetround(void);
33int fesetround(int);
34int fegetenv(fenv_t *);
35int feholdexcept(fenv_t *);
36int fesetenv(const fenv_t *);
37int feupdateenv(const fenv_t *);
38
39#endif
Note: See TracBrowser for help on using the repository browser.