_const

package
v0.0.0-...-f17293a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UintBytes = 1 << _log
	UintBits  = IntBytes * 8
	IntBytes  = UintBytes
	IntBits   = UintBits
	MaxUint   = (1 << IntBits) - 1
	MinUint   = 0
	MaxInt    = MaxUint >> 1
	MinInt    = -MaxInt - 1
)
View Source
const (
	Uint8Bytes = 1
	Uint8Bits  = Uint8Bytes * 8
	Int8Bytes  = Uint8Bytes
	Int8Bits   = Uint8Bits
	MaxUint8   = (1 << Uint8Bits) - 1
	MinUint8   = 0
	MaxInt8    = MaxUint8 >> 1
	MinInt8    = -MaxInt8 - 1
)
View Source
const (
	Uint16Bytes = 2
	Uint16Bits  = Uint16Bytes * 8
	Int16Bytes  = Uint16Bytes
	Int16Bits   = Uint16Bits
	MaxUint16   = (1 << Uint16Bits) - 1
	MinUint16   = 0
	MaxInt16    = MaxUint16 >> 1
	MinInt16    = -MaxInt16 - 1
)
View Source
const (
	Uint32Bytes = 4
	Uint32Bits  = Uint32Bytes * 8
	Int32Bytes  = Uint32Bytes
	Int32Bits   = Uint32Bits
	MaxUint32   = (1 << Uint32Bits) - 1
	MinUint32   = 0
	MaxInt32    = MaxUint32 >> 1
	MinInt32    = -MaxInt32 - 1
)
View Source
const (
	Uint64Bytes = 8
	Uint64Bits  = Uint64Bytes * 8
	Int64Bytes  = Uint64Bytes
	Int64Bits   = Uint64Bits
	MaxUint64   = (1 << Uint64Bits) - 1
	MinUint64   = 0
	MaxInt64    = MaxUint64 >> 1
	MinInt64    = -MaxInt64 - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL