- zigZagDecode
Decode a long previously encoded with #zigZagEncode(long).
- zigZagEncode
Zig-zag [https://developers.google.com/protocol-buffers/docs/encoding#types]
encode the provided lo
- interleave
Interleaves the first 32 bits of each long value Adapted from:
http://graphics.stanford.edu/~seander
- deinterleave
Deinterleaves long value back to two concatenated 32bit values
- pop_andnot
Returns the popcount or cardinality of A & ~B. Neither array is modified.
- pop_array
Returns the number of set bits in an array of longs.
- pop_union
Returns the popcount or cardinality of the union of two sets. Neither array is
modified.
- flipFlop
flip flops odd with even bits
- nextHighestPowerOfTwo
returns the next highest power of two, or the current value if it's already a
power of two or zero
- ntz
Returns number of trailing zeros in the 64 bit long value.
- pop
Returns the number of bits set in the long
- pop_xor
Returns the popcount or cardinality of A ^ B Neither array is modified.