1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
// Code generated by 'yaegi extract math/big'. DO NOT EDIT.
//go:build go1.21 && !go1.22
// +build go1.21,!go1.22
package stdlib
import (
"go/constant"
"go/token"
"math/big"
"reflect"
)
func init() {
Symbols["math/big/big"] = map[string]reflect.Value{
// function, constant and variable definitions
"Above": reflect.ValueOf(big.Above),
"AwayFromZero": reflect.ValueOf(big.AwayFromZero),
"Below": reflect.ValueOf(big.Below),
"Exact": reflect.ValueOf(big.Exact),
"Jacobi": reflect.ValueOf(big.Jacobi),
"MaxBase": reflect.ValueOf(constant.MakeFromLiteral("62", token.INT, 0)),
"MaxExp": reflect.ValueOf(constant.MakeFromLiteral("2147483647", token.INT, 0)),
"MaxPrec": reflect.ValueOf(constant.MakeFromLiteral("4294967295", token.INT, 0)),
"MinExp": reflect.ValueOf(constant.MakeFromLiteral("-2147483648", token.INT, 0)),
"NewFloat": reflect.ValueOf(big.NewFloat),
"NewInt": reflect.ValueOf(big.NewInt),
"NewRat": reflect.ValueOf(big.NewRat),
"ParseFloat": reflect.ValueOf(big.ParseFloat),
"ToNearestAway": reflect.ValueOf(big.ToNearestAway),
"ToNearestEven": reflect.ValueOf(big.ToNearestEven),
"ToNegativeInf": reflect.ValueOf(big.ToNegativeInf),
"ToPositiveInf": reflect.ValueOf(big.ToPositiveInf),
"ToZero": reflect.ValueOf(big.ToZero),
// type definitions
"Accuracy": reflect.ValueOf((*big.Accuracy)(nil)),
"ErrNaN": reflect.ValueOf((*big.ErrNaN)(nil)),
"Float": reflect.ValueOf((*big.Float)(nil)),
"Int": reflect.ValueOf((*big.Int)(nil)),
"Rat": reflect.ValueOf((*big.Rat)(nil)),
"RoundingMode": reflect.ValueOf((*big.RoundingMode)(nil)),
"Word": reflect.ValueOf((*big.Word)(nil)),
}
}
|