Class IntegerTo16BitFloatingPoint


  • public class IntegerTo16BitFloatingPoint
    extends Object
    Converts an unsigned long value to a 16 bit floating point number and back. Used to store a compact representation of the calculated weight in the cache entry.
    Author:
    Jens Wilke
    • Constructor Detail

      • IntegerTo16BitFloatingPoint

        public IntegerTo16BitFloatingPoint()
    • Method Detail

      • compress

        public static int compress​(int v)
      • expand

        public static int expand​(int v)