source: trunk/libs/newlib/src/newlib/libc/machine/riscv/include/fenv.h @ 444

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
18extern "C" {
19#endif
20
21/* Exception */
22int feclearexcept(int excepts);
23int fegetexceptflag(fexcept_t *flagp, int excepts);
24int feraiseexcept(int excepts);
25int fesetexceptflag(const fexcept_t *flagp, int excepts);
26int fetestexcept(int excepts);
27
28/* Rounding mode */
29int fegetround(void);
30int fesetround(int rounding_mode);
31
32/* Float environment */
33int fegetenv(fenv_t *envp);
34int feholdexcept(fenv_t *envp);
35int fesetenv(const fenv_t *envp);
36int 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.