use redline::redline;

#[redline(latency = "< 100ns", allocs = 0, syscalls = 0)]
fn identity(x: u64) -> u64 {
    x
}

#[redline(latency = "< 100ns", allocs = 0, syscalls = 0)]
fn swap(a: u64, b: u64) -> (u64, u64) {
    (b, a)
}

#[redline(latency = "< 100ns")]
fn bit_ops(x: u64) -> u64 {
    let a = x & 0xFF;
    let b = x >> 8;
    let c = a | b;
    c ^ 0xDEAD
}

fn main() {}
