Coverage Report

Created: 2026-03-23 07:13

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/round.rs
Line
Count
Source
1
/// Round `x` to the nearest integer, breaking ties away from zero.
2
#[cfg(f16_enabled)]
3
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
4
pub fn roundf16(x: f16) -> f16 {
5
    super::generic::round(x)
6
}
7
8
/// Round `x` to the nearest integer, breaking ties away from zero.
9
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
10
0
pub fn roundf(x: f32) -> f32 {
11
0
    super::generic::round(x)
12
0
}
13
14
/// Round `x` to the nearest integer, breaking ties away from zero.
15
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
16
0
pub fn round(x: f64) -> f64 {
17
0
    super::generic::round(x)
18
0
}
19
20
/// Round `x` to the nearest integer, breaking ties away from zero.
21
#[cfg(f128_enabled)]
22
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
23
pub fn roundf128(x: f128) -> f128 {
24
    super::generic::round(x)
25
}