summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go')
-rw-r--r--vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go b/vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go
index 1a3407c39..f1d12cb20 100644
--- a/vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go
+++ b/vendor/github.com/bytedance/sonic/internal/native/dispatch_arm64.go
@@ -56,6 +56,8 @@ var (
S_skip_array uintptr
S_skip_object uintptr
S_skip_number uintptr
+ S_parse_with_padding uintptr
+ S_lookup_small_key uintptr
)
//go:nosplit
@@ -128,6 +130,17 @@ func ValidateUTF8(s *string, p *int, m *types.StateMachine) (ret int)
//go:linkname ValidateUTF8Fast github.com/bytedance/sonic/internal/native/neon.__validate_utf8_fast
func ValidateUTF8Fast(s *string) (ret int)
+//go:nosplit
+//go:noescape
+//go:linkname ParseWithPadding github.com/bytedance/sonic/internal/native/neon.__parse_with_padding
+func ParseWithPadding(parser unsafe.Pointer) (ret int)
+
+//go:nosplit
+//go:noescape
+//go:linkname LookupSmallKey github.com/bytedance/sonic/internal/native/neon.__lookup_small_key
+func LookupSmallKey(key *string, table *[]byte, lowerOff int) (index int)
+
+
func useNeon() {
S_f64toa = neon.S_f64toa
S_f32toa = neon.S_f32toa
@@ -147,6 +160,8 @@ func useNeon() {
S_skip_object = neon.S_skip_object
S_skip_number = neon.S_skip_number
S_get_by_path = neon.S_get_by_path
+ S_parse_with_padding = neon.S_parse_with_padding
+ S_lookup_small_key = neon.S_lookup_small_key
}
func init() {