luaur-compiler 0.1.3

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
#[inline]
pub(crate) fn parallel_add_sat(x: u64, y: u64) -> u64 {
    let r = x.wrapping_add(y);
    let s = r & 0x8080808080808080u64; // saturation mask

    (r ^ s) | (s.wrapping_sub(s >> 7))
}