• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2017 The Android Open Source Project
2 // SPDX-License-Identifier: BSD-2-Clause
3 
4 #include <fenv.h>
5 
6 #include "header_checks.h"
7 
fenv_h()8 static void fenv_h() {
9   TYPE(fenv_t);
10   TYPE(fexcept_t);
11 
12   MACRO(FE_DIVBYZERO);
13   MACRO(FE_INEXACT);
14   MACRO(FE_INVALID);
15   MACRO(FE_OVERFLOW);
16   MACRO(FE_UNDERFLOW);
17 
18   MACRO(FE_ALL_EXCEPT);
19 
20   MACRO(FE_DOWNWARD);
21   MACRO(FE_TONEAREST);
22   MACRO(FE_TOWARDZERO);
23   MACRO(FE_UPWARD);
24 
25   const fenv_t* fe_dfl_env = FE_DFL_ENV;
26 
27   FUNCTION(feclearexcept, int (*f)(int));
28   FUNCTION(fegetenv, int (*f)(fenv_t*));
29   FUNCTION(fegetexceptflag, int (*f)(fexcept_t*, int));
30   FUNCTION(fegetround, int (*f)(void));
31   FUNCTION(feholdexcept, int (*f)(fenv_t*));
32   FUNCTION(feraiseexcept, int (*f)(int));
33   FUNCTION(fesetenv, int (*f)(const fenv_t*));
34   FUNCTION(fesetexceptflag, int (*f)(const fexcept_t*, int));
35   FUNCTION(fesetround, int (*f)(int));
36   FUNCTION(fetestexcept, int (*f)(int));
37   FUNCTION(feupdateenv, int (*f)(const fenv_t*));
38 }
39