Package me.lemire.longcompression
Class LongUtil
java.lang.Object
me.lemire.longcompression.LongUtil
Deprecated.
These are unofficial helpers related to long compression
- Author:
- Benoit Lacelle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
bits
(long i) Deprecated.Compute the integer logarithms (ceil(log(x+1)) of a valueprotected static String
longToBinaryWithLeading
(long l) Deprecated.static int
maxbits
(long[] i, int pos, int length) Deprecated.Compute the maximum of the integer logarithms (ceil(log(x+1)) of a range of value
-
Constructor Details
-
LongUtil
public LongUtil()Deprecated.
-
-
Method Details
-
maxbits
public static int maxbits(long[] i, int pos, int length) Deprecated.Compute the maximum of the integer logarithms (ceil(log(x+1)) of a range of value- Parameters:
i
- source arraypos
- starting positionlength
- number of integers to consider- Returns:
- integer logarithm
-
bits
public static int bits(long i) Deprecated.Compute the integer logarithms (ceil(log(x+1)) of a value- Parameters:
i
- source value- Returns:
- integer logarithm
-
longToBinaryWithLeading
Deprecated.
-