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

Function is_aligned

src/types/mod.rs:1154–1156  ·  view source on GitHub ↗
(alignment: Alignment, value: u32)

Source from the content-addressed store, hash-verified

1152}
1153
1154pub fn is_aligned(alignment: Alignment, value: u32) -> bool {
1155 bitwise_and_u32(value, alignment.remainder_mask()) == 0
1156}
1157
1158pub struct Dirent {
1159 pub ino: u64,

Callers 2

readMethod · 0.85
writeMethod · 0.85

Calls 2

bitwise_and_u32Function · 0.85
remainder_maskMethod · 0.80

Tested by

no test coverage detected