Home
last modified time | relevance | path

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

/external/rust/crates/percent-encoding/
Dlib.rs59 mask: [Chunk; ASCII_RANGE_LEN / BITS_PER_CHUNK],
66 const BITS_PER_CHUNK: usize = 8 * std::mem::size_of::<Chunk>(); constant
72 let chunk = self.mask[byte as usize / BITS_PER_CHUNK]; in contains()
73 let mask = 1 << (byte as usize % BITS_PER_CHUNK); in contains()
83 mask[byte as usize / BITS_PER_CHUNK] |= 1 << (byte as usize % BITS_PER_CHUNK); in add()
89 mask[byte as usize / BITS_PER_CHUNK] &= !(1 << (byte as usize % BITS_PER_CHUNK)); in remove()