summaryrefslogtreecommitdiff
path: root/vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go')
-rw-r--r--vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go62
1 files changed, 48 insertions, 14 deletions
diff --git a/vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go b/vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go
index f18de543e..3bcb09005 100644
--- a/vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go
+++ b/vendor/github.com/chenzhuoyu/base64x/native_subr_amd64.go
@@ -3,27 +3,61 @@
package base64x
-//go:nosplit
-//go:noescape
-//goland:noinspection ALL
-func __native_entry__() uintptr
+import (
+ `github.com/bytedance/sonic/loader`
+)
-var (
- _subr__b64decode = __native_entry__() + 1563
- _subr__b64encode = __native_entry__() + 301
+const (
+ _entry__b64decode = 1328
+ _entry__b64encode = 256
)
const (
- _stack__b64decode = 128
+ _stack__b64decode = 152
_stack__b64encode = 40
)
-var (
- _ = _subr__b64decode
- _ = _subr__b64encode
+const (
+ _size__b64decode = 17616
+ _size__b64encode = 864
)
-const (
- _ = _stack__b64decode
- _ = _stack__b64encode
+var (
+ _pcsp__b64decode = [][2]uint32{
+ {1, 0},
+ {4, 8},
+ {6, 16},
+ {8, 24},
+ {10, 32},
+ {12, 40},
+ {13, 48},
+ {17560, 152},
+ {17564, 48},
+ {17565, 40},
+ {17567, 32},
+ {17569, 24},
+ {17571, 16},
+ {17573, 8},
+ {17577, 0},
+ {17608, 152},
+ }
+ _pcsp__b64encode = [][2]uint32{
+ {1, 0},
+ {4, 8},
+ {6, 16},
+ {8, 24},
+ {10, 32},
+ {852, 40},
+ {853, 32},
+ {855, 24},
+ {857, 16},
+ {859, 8},
+ {864, 0},
+ }
)
+
+var funcs = []loader.CFunc{
+ {"__native_entry__", 0, 67, 0, nil},
+ {"_b64decode", _entry__b64decode, _size__b64decode, _stack__b64decode, _pcsp__b64decode},
+ {"_b64encode", _entry__b64encode, _size__b64encode, _stack__b64encode, _pcsp__b64encode},
+}