MCPcopy Create free account
hub / github.com/PLSysSec/wave / nth_bit_set

Function nth_bit_set

src/tcb/misc.rs:58–60  ·  view source on GitHub ↗
(bv: u16, n: i32)

Source from the content-addressed store, hash-verified

56#[pure]
57#[ensures(bv == 0 ==> result == false)]
58pub fn nth_bit_set(bv: u16, n: i32) -> bool {
59 bv & (1 << n) != 0
60}
61
62#[trusted]
63#[pure]

Callers 12

check_nth_bit_setFunction · 0.85
atimMethod · 0.85
atim_nowMethod · 0.85
mtimMethod · 0.85
mtim_nowMethod · 0.85
rdMethod · 0.85
wrMethod · 0.85
recv_peekMethod · 0.85
recv_waitallMethod · 0.85
to_posixMethod · 0.85
to_posixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected