Large reorganization of headers (WIP)

This commit is contained in:
Jeremy Soller
2018-08-26 08:11:35 -06:00
parent ff32c8cbbd
commit c20ce5ffed
261 changed files with 236 additions and 1672 deletions
+16
View File
@@ -0,0 +1,16 @@
//! float.h implementation for Redox, following
//! http://pubs.opengroup.org/onlinepubs/7908799/xsh/float.h.html
use header::fenv::{fegetround, FE_TONEAREST};
use platform;
use platform::types::*;
pub const FLT_RADIX: c_int = 2;
#[no_mangle]
pub unsafe extern "C" fn flt_rounds() -> c_int {
match fegetround() {
FE_TONEAREST => 1,
_ => -1,
}
}