summaryrefslogtreecommitdiff
path: root/src/node_simd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_simd.h')
-rw-r--r--src/node_simd.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/node_simd.h b/src/node_simd.h
new file mode 100644
index 0000000000..24398683c6
--- /dev/null
+++ b/src/node_simd.h
@@ -0,0 +1,22 @@
+#ifndef SRC_NODE_SIMD_H_
+#define SRC_NODE_SIMD_H_
+
+#if defined(__aarch64__) || defined(_M_ARM64)
+#define NODE_HAS_SIMD_NEON 1
+#endif
+
+#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
+
+#include <string_view>
+
+namespace node {
+namespace simd {
+
+uint32_t utf8_byte_length(const uint8_t* input, size_t length);
+
+} // namespace simd
+} // namespace node
+
+#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
+
+#endif // SRC_NODE_SIMD_H_