Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / include / fenv.h
blob4795cc925ad7cc22ddaffcf86a63dc9aa0b44c3b
1 /* Copyright (c) 2017 SiFive Inc. All rights reserved.
3 This copyrighted material is made available to anyone wishing to use,
4 modify, copy, or redistribute it subject to the terms and conditions
5 of the FreeBSD License. This program is distributed in the hope that
6 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
7 including the implied warranties of MERCHANTABILITY or FITNESS FOR
8 A PARTICULAR PURPOSE. A copy of this license is available at
9 http://www.opensource.org/licenses.
12 #ifndef _FENV_H
13 #define _FENV_H
15 #include <sys/fenv.h>
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
21 /* Exception */
22 int feclearexcept(int excepts);
23 int fegetexceptflag(fexcept_t *flagp, int excepts);
24 int feraiseexcept(int excepts);
25 int fesetexceptflag(const fexcept_t *flagp, int excepts);
26 int fetestexcept(int excepts);
28 /* Rounding mode */
29 int fegetround(void);
30 int fesetround(int rounding_mode);
32 /* Float environment */
33 int fegetenv(fenv_t *envp);
34 int feholdexcept(fenv_t *envp);
35 int fesetenv(const fenv_t *envp);
36 int feupdateenv(const fenv_t *envp);
38 #ifdef __cplusplus
40 #endif
42 #endif