]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/fenv.h
Revert "Suppress warning in string/tester.c for gcc 4.9"
[thirdparty/glibc.git] / include / fenv.h
CommitLineData
ed073f0e 1#ifndef _FENV_H
7cabd57c 2#include <math/fenv.h>
ed073f0e 3
a68d0680 4#ifndef _ISOMAC
b92a20b5 5# include <stdbool.h>
ed073f0e
AJ
6/* Now define the internal interfaces. */
7
8extern int __feclearexcept (int __excepts);
246ec411 9extern int __fegetexcept (void);
ed073f0e
AJ
10extern int __fegetexceptflag (fexcept_t *__flagp, int __excepts);
11extern int __feraiseexcept (int __excepts);
a784e502 12extern int __fesetexceptflag (const fexcept_t *__flagp, int __excepts);
ed073f0e 13extern int __fegetenv (fenv_t *__envp);
a784e502
UD
14extern int __fesetenv (const fenv_t *__envp);
15extern int __feupdateenv (const fenv_t *__envp);
b93c2205 16extern __typeof (fegetround) __fegetround;
ef9faf13 17extern __typeof (feholdexcept) __feholdexcept;
ed073f0e 18
76f2646f 19libm_hidden_proto (feraiseexcept)
0747f818 20libm_hidden_proto (__feraiseexcept)
7eb22e75 21libm_hidden_proto (fegetenv)
73a268c7 22libm_hidden_proto (__fegetenv)
3c1c46a6 23libm_hidden_proto (fegetround)
b93c2205 24libm_hidden_proto (__fegetround)
76f2646f 25libm_hidden_proto (fesetenv)
9b8a7277
UD
26libm_hidden_proto (fesetround)
27libm_hidden_proto (feholdexcept)
ef9faf13 28libm_hidden_proto (__feholdexcept)
9ff8d36f
JJ
29libm_hidden_proto (feupdateenv)
30libm_hidden_proto (fetestexcept)
5b5b04d6 31libm_hidden_proto (feclearexcept)
76f2646f 32
25061094
SP
33/* Rounding mode context. This allows functions to set/restore rounding mode
34 only when the desired rounding mode is different from the current rounding
35 mode. */
36struct rm_ctx
37{
38 fenv_t env;
39 bool updated_status;
40};
b92a20b5 41#endif
25061094 42
ed073f0e 43#endif