]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/fenv.h
Add per-thread cache to malloc
[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);
223d1cac 16extern __typeof (fegetround) __fegetround __attribute_pure__;
ef9faf13 17extern __typeof (feholdexcept) __feholdexcept;
01238691 18extern __typeof (fesetround) __fesetround;
ed073f0e 19
76f2646f 20libm_hidden_proto (feraiseexcept)
0747f818 21libm_hidden_proto (__feraiseexcept)
7eb22e75 22libm_hidden_proto (fegetenv)
73a268c7 23libm_hidden_proto (__fegetenv)
3c1c46a6 24libm_hidden_proto (fegetround)
b93c2205 25libm_hidden_proto (__fegetround)
76f2646f 26libm_hidden_proto (fesetenv)
cd42798a 27libm_hidden_proto (__fesetenv)
9b8a7277 28libm_hidden_proto (fesetround)
01238691 29libm_hidden_proto (__fesetround)
9b8a7277 30libm_hidden_proto (feholdexcept)
ef9faf13 31libm_hidden_proto (__feholdexcept)
9ff8d36f 32libm_hidden_proto (feupdateenv)
8116321f 33libm_hidden_proto (__feupdateenv)
9ff8d36f 34libm_hidden_proto (fetestexcept)
5b5b04d6 35libm_hidden_proto (feclearexcept)
76f2646f 36
25061094
SP
37/* Rounding mode context. This allows functions to set/restore rounding mode
38 only when the desired rounding mode is different from the current rounding
39 mode. */
40struct rm_ctx
41{
42 fenv_t env;
43 bool updated_status;
44};
b92a20b5 45#endif
25061094 46
ed073f0e 47#endif