github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/internal/native/avx/native_amd64.go (about) 1 // Code generated by Makefile, DO NOT EDIT. 2 3 /* 4 * Copyright 2023 CloudWeGo Authors. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package avx 20 import ( 21 "unsafe" 22 23 "github.com/cloudwego/dynamicgo/internal/caching" 24 "github.com/cloudwego/dynamicgo/internal/rt" 25 "github.com/cloudwego/dynamicgo/internal/native/types" 26 ) 27 28 var ( 29 __i64toa func(out unsafe.Pointer, val int64) (ret int) 30 31 __f64toa func(out unsafe.Pointer, val float64) (ret int) 32 33 __quote func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn unsafe.Pointer, flags uint64) (ret int) 34 35 __tb_write_i64 func(buf unsafe.Pointer, v int64) (ret uint64) 36 37 __hm_get func(hm unsafe.Pointer, k unsafe.Pointer) (val unsafe.Pointer) 38 39 __trie_get func(hm unsafe.Pointer, k unsafe.Pointer) (val unsafe.Pointer) 40 41 __j2t_fsm_exec func(fsm unsafe.Pointer, buf unsafe.Pointer, src unsafe.Pointer, flag uint64) (ret uint64) 42 43 __tb_skip func(st unsafe.Pointer, s unsafe.Pointer, n int, t uint8) (ret int) 44 ) 45 46 //go:nosplit 47 func i64toa(out *byte, val int64) (ret int) { 48 return __i64toa(rt.NoEscape(unsafe.Pointer(out)), val) 49 } 50 51 //go:nosplit 52 func f64toa(out *byte, val float64) (ret int) { 53 return __f64toa(rt.NoEscape(unsafe.Pointer(out)), val) 54 } 55 56 //go:nosplit 57 func quote(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn *int, flags uint64) (ret int) { 58 return __quote(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(dn)), flags) 59 } 60 61 //go:nosplit 62 func tb_write_i64(buf *[]byte, v int64) (ret uint64) { 63 return __tb_write_i64(rt.NoEscape(unsafe.Pointer(buf)), v) 64 } 65 66 //go:nosplit 67 func hm_get(hm *caching.HashMap, k *string) (val unsafe.Pointer) { 68 return __hm_get(rt.NoEscape(unsafe.Pointer(hm)), rt.NoEscape(unsafe.Pointer(k))) 69 } 70 71 //go:nosplit 72 func trie_get(hm *caching.TrieTree, k *string) (val unsafe.Pointer){ 73 return __trie_get(rt.NoEscape(unsafe.Pointer(hm)), rt.NoEscape(unsafe.Pointer(k))) 74 } 75 76 //go:nosplit 77 func j2t_fsm_exec(fsm *types.J2TStateMachine, buf *[]byte, src *string, flag uint64) (ret uint64) { 78 return __j2t_fsm_exec(rt.NoEscape(unsafe.Pointer(fsm)), rt.NoEscape(unsafe.Pointer(buf)), rt.NoEscape(unsafe.Pointer(src)), flag) 79 } 80 81 //go:nosplit 82 func tb_skip(st *types.TStateMachine, s *byte, n int, t uint8) (ret int) { 83 return __tb_skip(rt.NoEscape(unsafe.Pointer(st)), rt.NoEscape(unsafe.Pointer(s)), n , t ) 84 }