(w: usize)
| 96 | // true) |
| 97 | #[inline] |
| 98 | fn contains_non_continuation_byte(w: usize) -> usize { |
| 99 | const LSB: usize = usize_repeat_u8(0x01); |
| 100 | ((!w >> 7) | (w >> 6)) & LSB |
| 101 | } |
| 102 | |
| 103 | // Morally equivalent to `values.to_ne_bytes().into_iter().sum::<usize>()`, but |
| 104 | // more efficient. |
no test coverage detected