github.com/goshafaq/sonic@v0.0.0-20231026082336-871835fb94c6/internal/native/sse/native_amd64.go (about)

     1  // Code generated by Makefile, DO NOT EDIT.
     2  
     3  // Code generated by Makefile, DO NOT EDIT.
     4  
     5  /*
     6   * Copyright 2021 ByteDance Inc.
     7   *
     8   * Licensed under the Apache License, Version 2.0 (the "License");
     9   * you may not use this file except in compliance with the License.
    10   * You may obtain a copy of the License at
    11   *
    12   *     http://www.apache.org/licenses/LICENSE-2.0
    13   *
    14   * Unless required by applicable law or agreed to in writing, software
    15   * distributed under the License is distributed on an "AS IS" BASIS,
    16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    17   * See the License for the specific language governing permissions and
    18   * limitations under the License.
    19   */
    20  
    21  package sse
    22  
    23  import (
    24  	"unsafe"
    25  
    26  	"github.com/goshafaq/sonic/internal/native/types"
    27  	"github.com/goshafaq/sonic/internal/rt"
    28  )
    29  
    30  var (
    31  	__i64toa func(out unsafe.Pointer, val int64) (ret int)
    32  
    33  	__u64toa func(out unsafe.Pointer, val uint64) (ret int)
    34  
    35  	__f64toa func(out unsafe.Pointer, val float64) (ret int)
    36  
    37  	__f32toa func(out unsafe.Pointer, val float32) (ret int)
    38  
    39  	__lspace func(sp unsafe.Pointer, nb int, off int) (ret int)
    40  
    41  	__quote func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn unsafe.Pointer, flags uint64) (ret int)
    42  
    43  	__html_escape func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn unsafe.Pointer) (ret int)
    44  
    45  	__unquote func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, ep unsafe.Pointer, flags uint64) (ret int)
    46  
    47  	__value func(s unsafe.Pointer, n int, p int, v unsafe.Pointer, flags uint64) (ret int)
    48  
    49  	__vstring func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer, flags uint64)
    50  
    51  	__vnumber func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
    52  
    53  	__vsigned func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
    54  
    55  	__vunsigned func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
    56  
    57  	__skip_one func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
    58  
    59  	__skip_one_fast func(s unsafe.Pointer, p unsafe.Pointer) (ret int)
    60  
    61  	__skip_array func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
    62  
    63  	__skip_object func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
    64  
    65  	__skip_number func(s unsafe.Pointer, p unsafe.Pointer) (ret int)
    66  
    67  	__validate_one func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer) (ret int)
    68  
    69  	__get_by_path func(s unsafe.Pointer, p unsafe.Pointer, path unsafe.Pointer, m unsafe.Pointer) (ret int)
    70  
    71  	__validate_utf8 func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer) (ret int)
    72  
    73  	__validate_utf8_fast func(s unsafe.Pointer) (ret int)
    74  
    75  	__fsm_exec func(m unsafe.Pointer, s unsafe.Pointer, p unsafe.Pointer, flags uint64) (ret int)
    76  )
    77  
    78  //go:nosplit
    79  func i64toa(out *byte, val int64) (ret int) {
    80  	return __i64toa(rt.NoEscape(unsafe.Pointer(out)), val)
    81  }
    82  
    83  //go:nosplit
    84  func u64toa(out *byte, val uint64) (ret int) {
    85  	return __u64toa(rt.NoEscape(unsafe.Pointer(out)), val)
    86  }
    87  
    88  //go:nosplit
    89  func f64toa(out *byte, val float64) (ret int) {
    90  	return __f64toa(rt.NoEscape(unsafe.Pointer(out)), val)
    91  }
    92  
    93  //go:nosplit
    94  func f32toa(out *byte, val float32) (ret int) {
    95  	return __f32toa(rt.NoEscape(unsafe.Pointer(out)), val)
    96  }
    97  
    98  //go:nosplit
    99  func lspace(sp unsafe.Pointer, nb int, off int) (ret int) {
   100  	return __lspace(rt.NoEscape(sp), nb, off)
   101  }
   102  
   103  //go:nosplit
   104  func quote(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn *int, flags uint64) (ret int) {
   105  	return __quote(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(dn)), flags)
   106  }
   107  
   108  //go:nosplit
   109  func html_escape(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn *int) (ret int) {
   110  	return __html_escape(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(dn)))
   111  }
   112  
   113  //go:nosplit
   114  func unquote(sp unsafe.Pointer, nb int, dp unsafe.Pointer, ep *int, flags uint64) (ret int) {
   115  	return __unquote(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(ep)), flags)
   116  }
   117  
   118  //go:nosplit
   119  func value(s unsafe.Pointer, n int, p int, v *types.JsonState, flags uint64) (ret int) {
   120  	return __value(rt.NoEscape(unsafe.Pointer(s)), n, p, rt.NoEscape(unsafe.Pointer(v)), flags)
   121  }
   122  
   123  //go:nosplit
   124  func vstring(s *string, p *int, v *types.JsonState, flags uint64) {
   125  	__vstring(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)), flags)
   126  }
   127  
   128  //go:nosplit
   129  func vnumber(s *string, p *int, v *types.JsonState) {
   130  	__vnumber(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
   131  }
   132  
   133  //go:nosplit
   134  func vsigned(s *string, p *int, v *types.JsonState) {
   135  	__vsigned(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
   136  }
   137  
   138  //go:nosplit
   139  func vunsigned(s *string, p *int, v *types.JsonState) {
   140  	__vunsigned(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
   141  }
   142  
   143  //go:nosplit
   144  func skip_one(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
   145  	return __skip_one(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
   146  }
   147  
   148  //go:nosplit
   149  func skip_one_fast(s *string, p *int) (ret int) {
   150  	return __skip_one_fast(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)))
   151  }
   152  
   153  //go:nosplit
   154  func skip_array(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
   155  	return __skip_array(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
   156  }
   157  
   158  //go:nosplit
   159  func skip_object(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
   160  	return __skip_object(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
   161  }
   162  
   163  //go:nosplit
   164  func skip_number(s *string, p *int) (ret int) {
   165  	return __skip_number(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)))
   166  }
   167  
   168  //go:nosplit
   169  func validate_one(s *string, p *int, m *types.StateMachine) (ret int) {
   170  	return __validate_one(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)))
   171  }
   172  
   173  //go:nosplit
   174  func get_by_path(s *string, p *int, path *[]interface{}, m *types.StateMachine) (ret int) {
   175  	return __get_by_path(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(path)), rt.NoEscape(unsafe.Pointer(m)))
   176  }
   177  
   178  //go:nosplit
   179  func validate_utf8(s *string, p *int, m *types.StateMachine) (ret int) {
   180  	return __validate_utf8(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)))
   181  }
   182  
   183  //go:nosplit
   184  func validate_utf8_fast(s *string) (ret int) {
   185  	return __validate_utf8_fast(rt.NoEscape(unsafe.Pointer(s)))
   186  }
   187  
   188  //go:nosplit
   189  func fsm_exec(m *types.StateMachine, s *string, p *int, flags uint64) (ret int) {
   190  	return __fsm_exec(rt.NoEscape(unsafe.Pointer(m)), rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), flags)
   191  }