Coverage Report

Created: 2025-12-31 06:33

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/libm-0.2.11/src/math/frexpf.rs
Line
Count
Source
1
0
pub fn frexpf(x: f32) -> (f32, i32) {
2
0
    let mut y = x.to_bits();
3
0
    let ee: i32 = ((y >> 23) & 0xff) as i32;
4
5
0
    if ee == 0 {
6
0
        if x != 0.0 {
7
0
            let x1p64 = f32::from_bits(0x5f800000);
8
0
            let (x, e) = frexpf(x * x1p64);
9
0
            return (x, e - 64);
10
        } else {
11
0
            return (x, 0);
12
        }
13
0
    } else if ee == 0xff {
14
0
        return (x, 0);
15
0
    }
16
17
0
    let e = ee - 0x7e;
18
0
    y &= 0x807fffff;
19
0
    y |= 0x3f000000;
20
0
    (f32::from_bits(y), e)
21
0
}