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

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