github.com/goplus/gossa@v0.3.25/pkg/sync/atomic/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package atomic
     7  
     8  import (
     9  	q "sync/atomic"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "atomic",
    19  		Path: "sync/atomic",
    20  		Deps: map[string]string{
    21  			"unsafe": "unsafe",
    22  		},
    23  		Interfaces: map[string]reflect.Type{},
    24  		NamedTypes: map[string]gossa.NamedType{
    25  			"Value": {reflect.TypeOf((*q.Value)(nil)).Elem(), "", "CompareAndSwap,Load,Store,Swap"},
    26  		},
    27  		AliasTypes: map[string]reflect.Type{},
    28  		Vars:       map[string]reflect.Value{},
    29  		Funcs: map[string]reflect.Value{
    30  			"AddInt32":              reflect.ValueOf(q.AddInt32),
    31  			"AddInt64":              reflect.ValueOf(q.AddInt64),
    32  			"AddUint32":             reflect.ValueOf(q.AddUint32),
    33  			"AddUint64":             reflect.ValueOf(q.AddUint64),
    34  			"AddUintptr":            reflect.ValueOf(q.AddUintptr),
    35  			"CompareAndSwapInt32":   reflect.ValueOf(q.CompareAndSwapInt32),
    36  			"CompareAndSwapInt64":   reflect.ValueOf(q.CompareAndSwapInt64),
    37  			"CompareAndSwapPointer": reflect.ValueOf(q.CompareAndSwapPointer),
    38  			"CompareAndSwapUint32":  reflect.ValueOf(q.CompareAndSwapUint32),
    39  			"CompareAndSwapUint64":  reflect.ValueOf(q.CompareAndSwapUint64),
    40  			"CompareAndSwapUintptr": reflect.ValueOf(q.CompareAndSwapUintptr),
    41  			"LoadInt32":             reflect.ValueOf(q.LoadInt32),
    42  			"LoadInt64":             reflect.ValueOf(q.LoadInt64),
    43  			"LoadPointer":           reflect.ValueOf(q.LoadPointer),
    44  			"LoadUint32":            reflect.ValueOf(q.LoadUint32),
    45  			"LoadUint64":            reflect.ValueOf(q.LoadUint64),
    46  			"LoadUintptr":           reflect.ValueOf(q.LoadUintptr),
    47  			"StoreInt32":            reflect.ValueOf(q.StoreInt32),
    48  			"StoreInt64":            reflect.ValueOf(q.StoreInt64),
    49  			"StorePointer":          reflect.ValueOf(q.StorePointer),
    50  			"StoreUint32":           reflect.ValueOf(q.StoreUint32),
    51  			"StoreUint64":           reflect.ValueOf(q.StoreUint64),
    52  			"StoreUintptr":          reflect.ValueOf(q.StoreUintptr),
    53  			"SwapInt32":             reflect.ValueOf(q.SwapInt32),
    54  			"SwapInt64":             reflect.ValueOf(q.SwapInt64),
    55  			"SwapPointer":           reflect.ValueOf(q.SwapPointer),
    56  			"SwapUint32":            reflect.ValueOf(q.SwapUint32),
    57  			"SwapUint64":            reflect.ValueOf(q.SwapUint64),
    58  			"SwapUintptr":           reflect.ValueOf(q.SwapUintptr),
    59  		},
    60  		TypedConsts:   map[string]gossa.TypedConst{},
    61  		UntypedConsts: map[string]gossa.UntypedConst{},
    62  	})
    63  }