java.lang.Object
me.lemire.longcompression.LongUtil

@Deprecated public class LongUtil extends Object
Deprecated.
These are unofficial helpers related to long compression
Author:
Benoit Lacelle
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    bits(long i)
    Deprecated.
    Compute the integer logarithms (ceil(log(x+1)) of a value
    protected static String
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 array
      pos - starting position
      length - 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

      protected static String longToBinaryWithLeading(long l)
      Deprecated.