Example usage for Java org.apache.lucene.util BitUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
long | deinterleave(long b) Extract just the even-bits value as a long from the bit-interleaved value |
long | flipFlop(final long b) flip flops odd with even bits |
long | interleave(int even, int odd) Interleaves the first 32 bits of each long value Adapted from: http://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN |
int | nextHighestPowerOfTwo(int v) returns the next highest power of two, or the current value if it's already a power of two or zero |
long | nextHighestPowerOfTwo(long v) returns the next highest power of two, or the current value if it's already a power of two or zero |
long | pop_array(long[] arr, int wordOffset, int numWords) Returns the number of set bits in an array of longs. |
int | zigZagDecode(int i) Decode an int previously encoded with #zigZagEncode(int) . |
long | zigZagDecode(long l) Decode a long previously encoded with #zigZagEncode(long) . |
int | zigZagEncode(int i) Same as #zigZagEncode(long) but on integers. |
long | zigZagEncode(long l) Zig-zag encode the provided long. |