github.com/goplus/gossa@v0.3.25/pkg/math/bits/go114_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.14,!go1.15 4 5 package bits 6 7 import ( 8 q "math/bits" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "bits", 19 Path: "math/bits", 20 Deps: map[string]string{ 21 "unsafe": "unsafe", 22 }, 23 Interfaces: map[string]reflect.Type{}, 24 NamedTypes: map[string]gossa.NamedType{}, 25 AliasTypes: map[string]reflect.Type{}, 26 Vars: map[string]reflect.Value{}, 27 Funcs: map[string]reflect.Value{ 28 "Add": reflect.ValueOf(q.Add), 29 "Add32": reflect.ValueOf(q.Add32), 30 "Add64": reflect.ValueOf(q.Add64), 31 "Div": reflect.ValueOf(q.Div), 32 "Div32": reflect.ValueOf(q.Div32), 33 "Div64": reflect.ValueOf(q.Div64), 34 "LeadingZeros": reflect.ValueOf(q.LeadingZeros), 35 "LeadingZeros16": reflect.ValueOf(q.LeadingZeros16), 36 "LeadingZeros32": reflect.ValueOf(q.LeadingZeros32), 37 "LeadingZeros64": reflect.ValueOf(q.LeadingZeros64), 38 "LeadingZeros8": reflect.ValueOf(q.LeadingZeros8), 39 "Len": reflect.ValueOf(q.Len), 40 "Len16": reflect.ValueOf(q.Len16), 41 "Len32": reflect.ValueOf(q.Len32), 42 "Len64": reflect.ValueOf(q.Len64), 43 "Len8": reflect.ValueOf(q.Len8), 44 "Mul": reflect.ValueOf(q.Mul), 45 "Mul32": reflect.ValueOf(q.Mul32), 46 "Mul64": reflect.ValueOf(q.Mul64), 47 "OnesCount": reflect.ValueOf(q.OnesCount), 48 "OnesCount16": reflect.ValueOf(q.OnesCount16), 49 "OnesCount32": reflect.ValueOf(q.OnesCount32), 50 "OnesCount64": reflect.ValueOf(q.OnesCount64), 51 "OnesCount8": reflect.ValueOf(q.OnesCount8), 52 "Rem": reflect.ValueOf(q.Rem), 53 "Rem32": reflect.ValueOf(q.Rem32), 54 "Rem64": reflect.ValueOf(q.Rem64), 55 "Reverse": reflect.ValueOf(q.Reverse), 56 "Reverse16": reflect.ValueOf(q.Reverse16), 57 "Reverse32": reflect.ValueOf(q.Reverse32), 58 "Reverse64": reflect.ValueOf(q.Reverse64), 59 "Reverse8": reflect.ValueOf(q.Reverse8), 60 "ReverseBytes": reflect.ValueOf(q.ReverseBytes), 61 "ReverseBytes16": reflect.ValueOf(q.ReverseBytes16), 62 "ReverseBytes32": reflect.ValueOf(q.ReverseBytes32), 63 "ReverseBytes64": reflect.ValueOf(q.ReverseBytes64), 64 "RotateLeft": reflect.ValueOf(q.RotateLeft), 65 "RotateLeft16": reflect.ValueOf(q.RotateLeft16), 66 "RotateLeft32": reflect.ValueOf(q.RotateLeft32), 67 "RotateLeft64": reflect.ValueOf(q.RotateLeft64), 68 "RotateLeft8": reflect.ValueOf(q.RotateLeft8), 69 "Sub": reflect.ValueOf(q.Sub), 70 "Sub32": reflect.ValueOf(q.Sub32), 71 "Sub64": reflect.ValueOf(q.Sub64), 72 "TrailingZeros": reflect.ValueOf(q.TrailingZeros), 73 "TrailingZeros16": reflect.ValueOf(q.TrailingZeros16), 74 "TrailingZeros32": reflect.ValueOf(q.TrailingZeros32), 75 "TrailingZeros64": reflect.ValueOf(q.TrailingZeros64), 76 "TrailingZeros8": reflect.ValueOf(q.TrailingZeros8), 77 }, 78 TypedConsts: map[string]gossa.TypedConst{}, 79 UntypedConsts: map[string]gossa.UntypedConst{ 80 "UintSize": {"untyped int", constant.MakeInt64(int64(q.UintSize))}, 81 }, 82 }) 83 }