Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 4 of 4) sorted by relevance

/smoltcp-0.9.1/src/
Drand.rs23 let shift = 29 - (s >> 61); in rand_u32() localVariable
24 (s >> shift) as u32 in rand_u32()
/smoltcp-0.9.1/src/wire/
Dsixlowpan.rs485 ($name:ident, $mask:expr, $shift:expr) => {
489 ((raw >> $shift) & $mask) as u8
495 ($name:ident, $mask:expr, $shift:expr) => {
500 raw = (raw & !($mask << $shift)) | ((val as u16) << $shift);
1412 ($name:ident, $mask:expr, $shift:expr) => {
1416 ((raw >> $shift) & $mask) as u8
1422 ($name:ident, $mask:expr, $shift:expr) => {
1426 raw = (raw & !($mask << $shift)) | (val << $shift);
Dipv4.rs255 let shift = 32 - self.prefix_len; in contains_addr() localVariable
256 let self_prefix = NetworkEndian::read_u32(self.address.as_bytes()) >> shift; in contains_addr()
257 let addr_prefix = NetworkEndian::read_u32(addr.as_bytes()) >> shift; in contains_addr()
/smoltcp-0.9.1/src/storage/
Dassembler.rs220 let shift = j - i - 1; in add() localVariable
221 if shift != 0 { in add()
229 .get(x + shift) in add()