tidb: github.com/pingcap/tidb/util/math Index | Files

package math

import "github.com/pingcap/tidb/util/math"

Index

Package Files

math.go

func Abs Uses

func Abs(n int64) int64

Abs implement the abs function according to http://cavaliercoder.com/blog/optimized-abs-for-int64-in-go.html

func StrLenOfInt64Fast Uses

func StrLenOfInt64Fast(x int64) int

StrLenOfInt64Fast efficiently calculate the string character lengths of an int64 as input

func StrLenOfUint64Fast Uses

func StrLenOfUint64Fast(x uint64) int

StrLenOfUint64Fast efficiently calculate the string character lengths of an uint64 as input

Package math imports 1 packages (graph) and is imported by 2 packages. Updated 2019-05-29. Refresh now. Tools for package owners.