Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 3a59e93

Browse files
authored
Merge pull request #205 from gnzlbg/fenv
Floating-point environment APIs are private
2 parents 0bbf1bf + b5bc134 commit 3a59e93

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/math/fenv.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
// src: musl/src/fenv/fenv.c
22
/* Dummy functions for archs lacking fenv implementation */
33

4-
pub const FE_UNDERFLOW: i32 = 0;
5-
pub const FE_INEXACT: i32 = 0;
4+
pub(crate) const FE_UNDERFLOW: i32 = 0;
5+
pub(crate) const FE_INEXACT: i32 = 0;
66

7-
pub const FE_TONEAREST: i32 = 0;
8-
pub const FE_TOWARDZERO: i32 = 0;
7+
pub(crate) const FE_TONEAREST: i32 = 0;
8+
pub(crate) const FE_TOWARDZERO: i32 = 0;
99

1010
#[inline]
11-
pub fn feclearexcept(_mask: i32) -> i32 {
11+
pub(crate) fn feclearexcept(_mask: i32) -> i32 {
1212
0
1313
}
1414

1515
#[inline]
16-
pub fn feraiseexcept(_mask: i32) -> i32 {
16+
pub(crate) fn feraiseexcept(_mask: i32) -> i32 {
1717
0
1818
}
1919

2020
#[inline]
21-
pub fn fetestexcept(_mask: i32) -> i32 {
21+
pub(crate) fn fetestexcept(_mask: i32) -> i32 {
2222
0
2323
}
2424

2525
#[inline]
26-
pub fn fegetround() -> i32 {
26+
pub(crate) fn fegetround() -> i32 {
2727
FE_TONEAREST
2828
}
2929

3030
#[inline]
31-
pub fn fesetround(_r: i32) -> i32 {
31+
pub(crate) fn fesetround(_r: i32) -> i32 {
3232
0
3333
}

0 commit comments

Comments
 (0)