package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

Abs implement the abs function according to http://cavaliercoder.com/blog/optimized-abs-for-int64-in-go.html.
Clamp restrict a value to a certain interval.
Divide2Batches divides 'total' into 'batches', and returns the size of each batch.
IsFinite reports whether f is neither NaN nor an infinity.
NewExponentialMovingAverage will create a new ExponentialMovingAverage.
NewWithSeed create a rng with random seed.
NewWithTime create a rng with time stamp.
NextPowerOfTwo returns the smallest power of two greater than or equal to `i` Caller should guarantee that i > 0 and the return value is not overflow.
StrLenOfInt64Fast efficiently calculate the string character lengths of an int64 as input.
StrLenOfUint64Fast efficiently calculate the string character lengths of an uint64 as input.

# Constants

Architecture and/or implementation specific integer limits and bit widths.
Architecture and/or implementation specific integer limits and bit widths.
Architecture and/or implementation specific integer limits and bit widths.
Architecture and/or implementation specific integer limits and bit widths.

# Structs

ExponentialMovingAverage is an exponential moving average measurement implementation.
MysqlRng is random number generator and this implementation is ported from MySQL.