Files
RedBear-OS/src/header/float/mod.rs
T
jD91mZM2 b8c50c7c64 Format
2019-08-04 19:05:45 +02:00

18 lines
375 B
Rust

//! float.h implementation for Redox, following
//! http://pubs.opengroup.org/onlinepubs/7908799/xsh/float.h.html
use crate::{
header::_fenv::{fegetround, FE_TONEAREST},
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,
}
}