Lines Matching refs:Wrapping
6 use std::num::Wrapping;
10 key_0: Wrapping<u32>,
11 key_1: Wrapping<u32>,
12 key_2: Wrapping<u32>,
18 key_0: Wrapping(0x12345678), in new()
19 key_1: Wrapping(0x23456789), in new()
20 key_2: Wrapping(0x34567890), in new()
27 (self.key_1 + (self.key_0 & Wrapping(0xff))) * Wrapping(0x08088405) + Wrapping(1); in update()
32 let temp: Wrapping<u16> = Wrapping(self.key_2.0 as u16) | Wrapping(3); in stream_byte()
33 ((temp * (temp ^ Wrapping(1))) >> 8).0 as u8 in stream_byte()
49 fn crc32(crc: Wrapping<u32>, input: u8) -> Wrapping<u32> { in crc32()
50 return (crc >> 8) ^ Wrapping(CRCTABLE[((crc & Wrapping(0xff)).0 as u8 ^ input) as usize]); in crc32()