Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)]
58
pub 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_set
Function · 0.85
atim
Method · 0.85
atim_now
Method · 0.85
mtim
Method · 0.85
mtim_now
Method · 0.85
rd
Method · 0.85
wr
Method · 0.85
recv_peek
Method · 0.85
recv_waitall
Method · 0.85
subscription_clock_abstime
Method · 0.85
to_posix
Method · 0.85
to_posix
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected