blob: 80af27cb5beee2f6dbae055c75a33a970d9d44c4 [file] [log] [blame]
Elliott Hughes13da6002025-02-03 10:42:13 -08001// Copyright (C) 2017 The Android Open Source Project
2// SPDX-License-Identifier: BSD-2-Clause
Elliott Hughes21b56eb2017-10-20 17:57:17 -07003
4#include <fenv.h>
5
6#include "header_checks.h"
7
8static 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}