diff options
Diffstat (limited to 'utf8_range.h')
-rw-r--r-- | utf8_range.h | 9 |
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 |