Documentation ¶
Index ¶
- Variables
- func GetMinMaxInt16(v []int16) (min, max int16)
- func GetMinMaxInt32(v []int32) (min, max int32)
- func GetMinMaxInt64(v []int64) (min, max int64)
- func GetMinMaxInt8(v []int8) (min, max int8)
- func GetMinMaxUint16(v []uint16) (min, max uint16)
- func GetMinMaxUint32(v []uint32) (min, max uint32)
- func GetMinMaxUint64(v []uint64) (min, max uint64)
- func GetMinMaxUint8(v []uint8) (min, max uint8)
- func Max(a, b int64) int64
- func MaxInt(a, b int) int
- func Min(a, b int64) int64
- func MinInt(a, b int) int
- func NewBufferedReader(rd io.Reader, sz int) *bufferedReader
Constants ¶
This section is empty.
Variables ¶
var ( ToLEInt16 = func(x int16) int16 { return x } ToLEUint16 = func(x uint16) uint16 { return x } ToLEUint32 = func(x uint32) uint32 { return x } ToLEUint64 = func(x uint64) uint64 { return x } ToLEInt32 = func(x int32) int32 { return x } ToLEInt64 = func(x int64) int64 { return x } ToLEFloat32 = func(x float32) float32 { return x } ToLEFloat64 = func(x float64) float64 { return x } )
Functions ¶
func GetMinMaxInt16 ¶
GetMinMaxInt16 returns the min and max for a int16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxInt32 ¶
GetMinMaxInt32 returns the min and max for a int32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxInt64 ¶
GetMinMaxInt64 returns the min and max for a int64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxInt8 ¶
GetMinMaxInt8 returns the min and max for a int8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint16 ¶
GetMinMaxUint16 returns the min and max for a uint16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint32 ¶
GetMinMaxUint32 returns the min and max for a uint32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint64 ¶
GetMinMaxUint64 returns the min and max for a uint64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint8 ¶
GetMinMaxUint8 returns the min and max for a uint8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func NewBufferedReader ¶
NewBufferedReader returns a buffered reader with similar semantics to bufio.Reader except Peek will expand the internal buffer if needed rather than return an error.
Types ¶
This section is empty.