rosu-pp 4.0.1

Difficulty and performance calculation for osu!
Documentation
#![allow(unused, reason = "useful regardless")]

#[inline]
#[cold]
const fn cold() {}

/// Hints at the compiler that the condition is likely `true`.
#[inline]
pub const fn likely(b: bool) -> bool {
    if !b {
        cold();
    }

    b
}

/// Hints at the compiler that the condition is likely `false`.
#[inline]
pub const fn unlikely(b: bool) -> bool {
    if b {
        cold();
    }

    b
}