| 1 | // Code generated by 'yaegi extract sync/atomic'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "reflect" |
| 10 | "sync/atomic" |
| 11 | ) |
| 12 | |
| 13 | func init() { |
| 14 | Symbols["sync/atomic/atomic"] = map[string]reflect.Value{ |
| 15 | // function, constant and variable definitions |
| 16 | "AddInt32": reflect.ValueOf(atomic.AddInt32), |
| 17 | "AddInt64": reflect.ValueOf(atomic.AddInt64), |
| 18 | "AddUint32": reflect.ValueOf(atomic.AddUint32), |
| 19 | "AddUint64": reflect.ValueOf(atomic.AddUint64), |
| 20 | "AddUintptr": reflect.ValueOf(atomic.AddUintptr), |
| 21 | "CompareAndSwapInt32": reflect.ValueOf(atomic.CompareAndSwapInt32), |
| 22 | "CompareAndSwapInt64": reflect.ValueOf(atomic.CompareAndSwapInt64), |
| 23 | "CompareAndSwapPointer": reflect.ValueOf(atomic.CompareAndSwapPointer), |
| 24 | "CompareAndSwapUint32": reflect.ValueOf(atomic.CompareAndSwapUint32), |
| 25 | "CompareAndSwapUint64": reflect.ValueOf(atomic.CompareAndSwapUint64), |
| 26 | "CompareAndSwapUintptr": reflect.ValueOf(atomic.CompareAndSwapUintptr), |
| 27 | "LoadInt32": reflect.ValueOf(atomic.LoadInt32), |
| 28 | "LoadInt64": reflect.ValueOf(atomic.LoadInt64), |
| 29 | "LoadPointer": reflect.ValueOf(atomic.LoadPointer), |
| 30 | "LoadUint32": reflect.ValueOf(atomic.LoadUint32), |
| 31 | "LoadUint64": reflect.ValueOf(atomic.LoadUint64), |
| 32 | "LoadUintptr": reflect.ValueOf(atomic.LoadUintptr), |
| 33 | "StoreInt32": reflect.ValueOf(atomic.StoreInt32), |
| 34 | "StoreInt64": reflect.ValueOf(atomic.StoreInt64), |
| 35 | "StorePointer": reflect.ValueOf(atomic.StorePointer), |
| 36 | "StoreUint32": reflect.ValueOf(atomic.StoreUint32), |
| 37 | "StoreUint64": reflect.ValueOf(atomic.StoreUint64), |
| 38 | "StoreUintptr": reflect.ValueOf(atomic.StoreUintptr), |
| 39 | "SwapInt32": reflect.ValueOf(atomic.SwapInt32), |
| 40 | "SwapInt64": reflect.ValueOf(atomic.SwapInt64), |
| 41 | "SwapPointer": reflect.ValueOf(atomic.SwapPointer), |
| 42 | "SwapUint32": reflect.ValueOf(atomic.SwapUint32), |
| 43 | "SwapUint64": reflect.ValueOf(atomic.SwapUint64), |
| 44 | "SwapUintptr": reflect.ValueOf(atomic.SwapUintptr), |
| 45 | |
| 46 | // type definitions |
| 47 | "Bool": reflect.ValueOf((*atomic.Bool)(nil)), |
| 48 | "Int32": reflect.ValueOf((*atomic.Int32)(nil)), |
| 49 | "Int64": reflect.ValueOf((*atomic.Int64)(nil)), |
| 50 | "Uint32": reflect.ValueOf((*atomic.Uint32)(nil)), |
| 51 | "Uint64": reflect.ValueOf((*atomic.Uint64)(nil)), |
| 52 | "Uintptr": reflect.ValueOf((*atomic.Uintptr)(nil)), |
| 53 | "Value": reflect.ValueOf((*atomic.Value)(nil)), |
| 54 | } |
| 55 | } |