fastnum 0.7.4

Fast decimal numbers library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[inline(always)]
pub const fn min(lhs: u32, rhs: u32) -> u32 {
    if lhs < rhs {
        lhs
    } else {
        rhs
    }
}

#[allow(dead_code)]
#[inline(always)]
pub const fn max(lhs: u32, rhs: u32) -> u32 {
    if lhs > rhs {
        lhs
    } else {
        rhs
    }
}