]> git.proxmox.com Git - rustc.git/blob - vendor/compiler_builtins/libm/src/math/fenv.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / compiler_builtins / libm / src / math / fenv.rs
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 pub(crate) const FE_TOWARDZERO: i32 = 0;
9
10 #[inline]
11 pub(crate) fn feclearexcept(_mask: i32) -> i32 {
12 0
13 }
14
15 #[inline]
16 pub(crate) fn feraiseexcept(_mask: i32) -> i32 {
17 0
18 }
19
20 #[inline]
21 pub(crate) fn fetestexcept(_mask: i32) -> i32 {
22 0
23 }
24
25 #[inline]
26 pub(crate) fn fegetround() -> i32 {
27 FE_TONEAREST
28 }
29
30 #[inline]
31 pub(crate) fn fesetround(_r: i32) -> i32 {
32 0
33 }