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 0b44a36 commit a6ce7cfCopy full SHA for a6ce7cf
src/implementation/x86/mod.rs
@@ -24,6 +24,10 @@ pub(crate) unsafe fn validate_utf8_basic(
24
(fun)(input)
25
}
26
27
+ if input.len() < 64 {
28
+ return super::validate_utf8_basic_fallback(input);
29
+ }
30
+
31
let fun = FN.load(Ordering::Relaxed);
32
mem::transmute::<FnRaw, super::ValidateUtf8Fn>(fun)(input)
33
@@ -88,6 +92,10 @@ pub(crate) unsafe fn validate_utf8_compat(
88
92
89
93
90
94
95
96
+ return super::validate_utf8_compat_fallback(input);
97
98
91
99
100
mem::transmute::<FnRaw, super::ValidateUtf8CompatFn>(fun)(input)
101
0 commit comments