xref: /drstd/dlibc/src/unix/header/_fenv/mod.rs (revision 9670759b785600bf6315e4173e46a602f16add7a)
1 //! fenv.h implementation for Redox, following
2 //! http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fenv.h.html
3 
4 pub const FE_ALL_EXCEPT: ::c_int = 0;
5 pub const FE_TONEAREST: ::c_int = 0;
6 
7 pub type fexcept_t = u64;
8 
9 #[repr(C)]
10 #[derive(Copy,Clone)]
11 pub struct fenv_t {
12     pub cw: u64,
13 }
14 
15 // #[no_mangle]
16 pub unsafe extern "C" fn feclearexcept(excepts: ::c_int) -> ::c_int {
17     unimplemented!();
18 }
19 
20 // #[no_mangle]
21 pub unsafe extern "C" fn fegenenv(envp: *mut fenv_t) -> ::c_int {
22     unimplemented!();
23 }
24 
25 // #[no_mangle]
26 pub unsafe extern "C" fn fegetexceptflag(flagp: *mut fexcept_t, excepts: ::c_int) -> ::c_int {
27     unimplemented!();
28 }
29 
30 // #[no_mangle]
31 pub unsafe extern "C" fn fegetround() -> ::c_int {
32     FE_TONEAREST
33 }
34 
35 // #[no_mangle]
36 pub unsafe extern "C" fn feholdexcept(envp: *mut fenv_t) -> ::c_int {
37     unimplemented!();
38 }
39 
40 // #[no_mangle]
41 pub unsafe extern "C" fn feraiseexcept(except: ::c_int) -> ::c_int {
42     unimplemented!();
43 }
44 
45 // #[no_mangle]
46 pub unsafe extern "C" fn fesetenv(envp: *const fenv_t) -> ::c_int {
47     unimplemented!();
48 }
49 
50 // #[no_mangle]
51 pub unsafe extern "C" fn fesetexceptflag(flagp: *const fexcept_t, excepts: ::c_int) -> ::c_int {
52     unimplemented!();
53 }
54 
55 // #[no_mangle]
56 pub unsafe extern "C" fn fesetround(round: ::c_int) -> ::c_int {
57     unimplemented!();
58 }
59 
60 // #[no_mangle]
61 pub unsafe extern "C" fn fetestexcept(excepts: ::c_int) -> ::c_int {
62     unimplemented!();
63 }
64 
65 // #[no_mangle]
66 pub unsafe extern "C" fn feupdateenv(envp: *const fenv_t) -> ::c_int {
67     unimplemented!();
68 }
69