Merge pull request #205 from gnzlbg/fenv
Floating-point environment APIs are private
This commit is contained in:
+9
-9
@@ -1,33 +1,33 @@
|
||||
// src: musl/src/fenv/fenv.c
|
||||
/* Dummy functions for archs lacking fenv implementation */
|
||||
|
||||
pub const FE_UNDERFLOW: i32 = 0;
|
||||
pub const FE_INEXACT: i32 = 0;
|
||||
pub(crate) const FE_UNDERFLOW: i32 = 0;
|
||||
pub(crate) const FE_INEXACT: i32 = 0;
|
||||
|
||||
pub const FE_TONEAREST: i32 = 0;
|
||||
pub const FE_TOWARDZERO: i32 = 0;
|
||||
pub(crate) const FE_TONEAREST: i32 = 0;
|
||||
pub(crate) const FE_TOWARDZERO: i32 = 0;
|
||||
|
||||
#[inline]
|
||||
pub fn feclearexcept(_mask: i32) -> i32 {
|
||||
pub(crate) fn feclearexcept(_mask: i32) -> i32 {
|
||||
0
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn feraiseexcept(_mask: i32) -> i32 {
|
||||
pub(crate) fn feraiseexcept(_mask: i32) -> i32 {
|
||||
0
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn fetestexcept(_mask: i32) -> i32 {
|
||||
pub(crate) fn fetestexcept(_mask: i32) -> i32 {
|
||||
0
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn fegetround() -> i32 {
|
||||
pub(crate) fn fegetround() -> i32 {
|
||||
FE_TONEAREST
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn fesetround(_r: i32) -> i32 {
|
||||
pub(crate) fn fesetround(_r: i32) -> i32 {
|
||||
0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user