| 1 | // Code generated by 'yaegi extract math/bits'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "go/constant" |
| 10 | "go/token" |
| 11 | "math/bits" |
| 12 | "reflect" |
| 13 | ) |
| 14 | |
| 15 | func init() { |
| 16 | Symbols["math/bits/bits"] = map[string]reflect.Value{ |
| 17 | // function, constant and variable definitions |
| 18 | "Add": reflect.ValueOf(bits.Add), |
| 19 | "Add32": reflect.ValueOf(bits.Add32), |
| 20 | "Add64": reflect.ValueOf(bits.Add64), |
| 21 | "Div": reflect.ValueOf(bits.Div), |
| 22 | "Div32": reflect.ValueOf(bits.Div32), |
| 23 | "Div64": reflect.ValueOf(bits.Div64), |
| 24 | "LeadingZeros": reflect.ValueOf(bits.LeadingZeros), |
| 25 | "LeadingZeros16": reflect.ValueOf(bits.LeadingZeros16), |
| 26 | "LeadingZeros32": reflect.ValueOf(bits.LeadingZeros32), |
| 27 | "LeadingZeros64": reflect.ValueOf(bits.LeadingZeros64), |
| 28 | "LeadingZeros8": reflect.ValueOf(bits.LeadingZeros8), |
| 29 | "Len": reflect.ValueOf(bits.Len), |
| 30 | "Len16": reflect.ValueOf(bits.Len16), |
| 31 | "Len32": reflect.ValueOf(bits.Len32), |
| 32 | "Len64": reflect.ValueOf(bits.Len64), |
| 33 | "Len8": reflect.ValueOf(bits.Len8), |
| 34 | "Mul": reflect.ValueOf(bits.Mul), |
| 35 | "Mul32": reflect.ValueOf(bits.Mul32), |
| 36 | "Mul64": reflect.ValueOf(bits.Mul64), |
| 37 | "OnesCount": reflect.ValueOf(bits.OnesCount), |
| 38 | "OnesCount16": reflect.ValueOf(bits.OnesCount16), |
| 39 | "OnesCount32": reflect.ValueOf(bits.OnesCount32), |
| 40 | "OnesCount64": reflect.ValueOf(bits.OnesCount64), |
| 41 | "OnesCount8": reflect.ValueOf(bits.OnesCount8), |
| 42 | "Rem": reflect.ValueOf(bits.Rem), |
| 43 | "Rem32": reflect.ValueOf(bits.Rem32), |
| 44 | "Rem64": reflect.ValueOf(bits.Rem64), |
| 45 | "Reverse": reflect.ValueOf(bits.Reverse), |
| 46 | "Reverse16": reflect.ValueOf(bits.Reverse16), |
| 47 | "Reverse32": reflect.ValueOf(bits.Reverse32), |
| 48 | "Reverse64": reflect.ValueOf(bits.Reverse64), |
| 49 | "Reverse8": reflect.ValueOf(bits.Reverse8), |
| 50 | "ReverseBytes": reflect.ValueOf(bits.ReverseBytes), |
| 51 | "ReverseBytes16": reflect.ValueOf(bits.ReverseBytes16), |
| 52 | "ReverseBytes32": reflect.ValueOf(bits.ReverseBytes32), |
| 53 | "ReverseBytes64": reflect.ValueOf(bits.ReverseBytes64), |
| 54 | "RotateLeft": reflect.ValueOf(bits.RotateLeft), |
| 55 | "RotateLeft16": reflect.ValueOf(bits.RotateLeft16), |
| 56 | "RotateLeft32": reflect.ValueOf(bits.RotateLeft32), |
| 57 | "RotateLeft64": reflect.ValueOf(bits.RotateLeft64), |
| 58 | "RotateLeft8": reflect.ValueOf(bits.RotateLeft8), |
| 59 | "Sub": reflect.ValueOf(bits.Sub), |
| 60 | "Sub32": reflect.ValueOf(bits.Sub32), |
| 61 | "Sub64": reflect.ValueOf(bits.Sub64), |
| 62 | "TrailingZeros": reflect.ValueOf(bits.TrailingZeros), |
| 63 | "TrailingZeros16": reflect.ValueOf(bits.TrailingZeros16), |
| 64 | "TrailingZeros32": reflect.ValueOf(bits.TrailingZeros32), |
| 65 | "TrailingZeros64": reflect.ValueOf(bits.TrailingZeros64), |
| 66 | "TrailingZeros8": reflect.ValueOf(bits.TrailingZeros8), |
| 67 | "UintSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), |
| 68 | } |
| 69 | } |