Class Decimals
java.lang.Object
org.eclipse.rdf4j.sail.lmdb.inlined.Decimals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdecodeExponent10Bits(int encoded) Deprecated.static intdecodeExponent9Bits(int encoded) Decodes a 9-bit exponent back to the original 11-bit exponent.static intencodeExponent9Bits(int exponent11) Encodes a double exponent into 9 bits if possible.
-
Constructor Details
-
Decimals
public Decimals()
-
-
Method Details
-
encodeExponent9Bits
public static int encodeExponent9Bits(int exponent11) Encodes a double exponent into 9 bits if possible. Handles special cases for zero/subnormal and NaN/Infinity.- Parameters:
exponent11- The original 11-bit exponent.- Returns:
- Encoded 9-bit exponent as int (0-511), or -1 if not encodable.
-
decodeExponent9Bits
public static int decodeExponent9Bits(int encoded) Decodes a 9-bit exponent back to the original 11-bit exponent.- Parameters:
encoded- 9-bit encoded exponent- Returns:
- 11-bit biased exponent or special values for reserved patterns
-
decodeExponent10Bits
Deprecated.
-
decodeExponent9Bits(int).