package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
AlignDown rounds a length down to an alignment.
AlignUp rounds a length up to an alignment.
ForEachSetBit64 calls f once for each set bit in x, with argument i equal to the set bit's index.
IsAnyOn returns true if *any* bit set in 'bits' is set in 'mask'.
IsAnyOn returns true if *any* bit set in 'bits' is set in 'mask'.
IsOn returns true if *all* bits set in 'bits' are set in 'mask'.
IsOn returns true if *all* bits set in 'bits' are set in 'mask'.
IsPowerOfTwo returns true if v is power of 2.
IsPowerOfTwo returns true if v is power of 2.
Mask returns a T with all of the given bits set.
Mask returns a T with all of the given bits set.
MaskOf is like Mask, but sets only a single bit (more efficiently).
MaskOf is like Mask, but sets only a single bit (more efficiently).
MostSignificantOne64 returns the index of the most significant 1 bit in x.
TrailingZeros64 returns the number of bits before the least significant 1 bit in x; in other words, it returns the index of the least significant 1 bit in x.