summaryrefslogtreecommitdiffstats
path: root/utf8_range.h
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-03-21 08:03:24 +0100
committerRemi Collet <remi@php.net>2022-03-21 08:03:24 +0100
commit8bcd18d36d6d3d919ba9002856e078c60cd5dcc0 (patch)
tree8baafd5ccb0f0a941d9ee32121a2bf54bf343fa8 /utf8_range.h
parent0d2ea15d4b79e24f3c9cd614baa74e57a784b908 (diff)
update to 3.20.0RC2
Diffstat (limited to 'utf8_range.h')
-rw-r--r--utf8_range.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utf8_range.h b/utf8_range.h
new file mode 100644
index 0000000..3695587
--- /dev/null
+++ b/utf8_range.h
@@ -0,0 +1,9 @@
+
+#if (defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)
+int utf8_range2(const unsigned char* data, int len);
+#else
+int utf8_naive(const unsigned char* data, int len);
+static inline int utf8_range2(const unsigned char* data, int len) {
+ return utf8_naive(data, len);
+}
+#endif