• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- C standard library header fenv.h ----------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIBC_FENV_H
10 #define LLVM_LIBC_FENV_H
11 
12 #include "__llvm-libc-common.h"
13 #include "llvm-libc-macros/fenv-macros.h"
14 
15 #include <llvm-libc-types/fexcept_t.h>
16 #include <llvm-libc-types/fenv_t.h>
17 
18 __BEGIN_C_DECLS
19 
20 int feclearexcept(int) __NOEXCEPT;
21 
22 int fegetenv(fenv_t *) __NOEXCEPT;
23 
24 int fegetexceptflag(fexcept_t *, int) __NOEXCEPT;
25 
26 int fegetround() __NOEXCEPT;
27 
28 int feholdexcept(fenv_t *) __NOEXCEPT;
29 
30 int feraiseexcept(int) __NOEXCEPT;
31 
32 int fesetenv(const fenv_t *) __NOEXCEPT;
33 
34 int fesetexcept(int) __NOEXCEPT;
35 
36 int fesetexceptflag(const fexcept_t *, int) __NOEXCEPT;
37 
38 int fesetround(int) __NOEXCEPT;
39 
40 int fetestexcept(int) __NOEXCEPT;
41 
42 int fetestexceptflag(const fexcept_t *, int) __NOEXCEPT;
43 
44 int feupdateenv(const fenv_t *) __NOEXCEPT;
45 
46 __END_C_DECLS
47 
48 #endif // LLVM_LIBC_FENV_H
49