Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.1 KB
|
Line | |
---|
1 | /* Copyright (c) 2017 SiFive Inc. All rights reserved. |
---|
2 | |
---|
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. |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef _FENV_H |
---|
13 | #define _FENV_H |
---|
14 | |
---|
15 | #include <sys/fenv.h> |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
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); |
---|
27 | |
---|
28 | /* Rounding mode */ |
---|
29 | int fegetround(void); |
---|
30 | int fesetround(int rounding_mode); |
---|
31 | |
---|
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); |
---|
37 | |
---|
38 | #ifdef __cplusplus |
---|
39 | } |
---|
40 | #endif |
---|
41 | |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.