Debian Codegraph @

third_party/rust/libm/src/math/fenv.rs

raw
1 // src: musl/src/fenv/fenv.c
2 /* Dummy functions for archs lacking fenv implementation */
3
4 pub(crate) const FE_UNDERFLOW: i32 = 0;
5 pub(crate) const FE_INEXACT: i32 = 0;
6
7 pub(crate) const FE_TONEAREST: i32 = 0;
8
9 #[inline]
10 pub(crate) fn feclearexcept(_mask: i32) -> i32 {
11 0
12 }
13
14 #[inline]
15 pub(crate) fn feraiseexcept(_mask: i32) -> i32 {
16 0
17 }
18
19 #[inline]
20 pub(crate) fn fetestexcept(_mask: i32) -> i32 {
21 0
22 }
23
24 #[inline]
25 pub(crate) fn fegetround() -> i32 {
26 FE_TONEAREST
27 }