Package org.deepjava.lowLevel
Class LL
- java.lang.Object
-
- org.deepjava.lowLevel.LL
-
public class LL extends Object
The methods of this class will be translated by inserting machine code instructions directly in the code without a method call. They offer maximum efficiency by using special optimization.
-
-
Constructor Summary
Constructors Constructor Description LL()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
bitsToDouble(long val)
Set double value directly from bits (64bit)static float
bitsToFloat(int val)
Set float value directly from bits (32bit)static long
doubleToBits(double d)
Get bits of floating point value (64bit)static int
floatToBits(float f)
Get bits of floating point value (32bit)
-
-
-
Method Detail
-
doubleToBits
public static long doubleToBits(double d)
Get bits of floating point value (64bit)- Parameters:
d
- Double value.- Returns:
- Bit pattern.
-
bitsToDouble
public static double bitsToDouble(long val)
Set double value directly from bits (64bit)- Parameters:
val
- Bit pattern.- Returns:
- Double value.
-
floatToBits
public static int floatToBits(float f)
Get bits of floating point value (32bit)- Parameters:
f
- Double value.- Returns:
- Bit pattern.
-
bitsToFloat
public static float bitsToFloat(int val)
Set float value directly from bits (32bit)- Parameters:
val
- Bit pattern.- Returns:
- Float value.
-
-