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