We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f2888 commit 1d818a4Copy full SHA for 1d818a4
src/libcore/slice/memchr.rs
@@ -33,6 +33,12 @@ fn contains_zero_byte(x: usize) -> bool {
33
x.wrapping_sub(LO_USIZE) & !x & HI_USIZE != 0
34
}
35
36
+#[cfg(target_pointer_width = "16")]
37
+#[inline]
38
+fn repeat_byte(b: u8) -> usize {
39
+ (b as usize) << 8 | b as usize
40
+}
41
+
42
#[cfg(target_pointer_width = "32")]
43
#[inline]
44
fn repeat_byte(b: u8) -> usize {
0 commit comments