Coverage Report

Created: 2025-11-16 07:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/libm-0.2.15/src/math/fmod.rs
Line
Count
Source
1
/// Calculate the remainder of `x / y`, the precise result of `x - trunc(x / y) * y`.
2
#[cfg(f16_enabled)]
3
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
4
pub fn fmodf16(x: f16, y: f16) -> f16 {
5
    super::generic::fmod(x, y)
6
}
7
8
/// Calculate the remainder of `x / y`, the precise result of `x - trunc(x / y) * y`.
9
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
10
0
pub fn fmodf(x: f32, y: f32) -> f32 {
11
0
    super::generic::fmod(x, y)
12
0
}
13
14
/// Calculate the remainder of `x / y`, the precise result of `x - trunc(x / y) * y`.
15
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
16
0
pub fn fmod(x: f64, y: f64) -> f64 {
17
0
    super::generic::fmod(x, y)
18
0
}
19
20
/// Calculate the remainder of `x / y`, the precise result of `x - trunc(x / y) * y`.
21
#[cfg(f128_enabled)]
22
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
23
pub fn fmodf128(x: f128, y: f128) -> f128 {
24
    super::generic::fmod(x, y)
25
}