Package ghidra.pcode.floatformat
Class FloatFormat
- java.lang.Object
-
- ghidra.pcode.floatformat.FloatFormat
-
public class FloatFormat extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.math.BigDecimalBIG_NaNstatic java.math.BigDecimalBIG_NEGATIVE_INFINITYstatic java.math.BigDecimalBIG_POSITIVE_INFINITYjava.math.BigDecimalmaxValueA constant holding the largest positive finite valuejava.math.BigDecimalminValueA constant holding the smallest positive normal value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetEncoding(double host)java.math.BigIntegergetEncoding(java.math.BigDecimal value)doublegetHostFloat(long encoding)java.math.BigDecimalgetHostFloat(java.math.BigInteger encoding)intgetSize()longopAbs(long a)java.math.BigIntegeropAbs(java.math.BigInteger a)longopAdd(long a, long b)java.math.BigIntegeropAdd(java.math.BigInteger a, java.math.BigInteger b)longopCeil(long a)java.math.BigIntegeropCeil(java.math.BigInteger a)longopDiv(long a, long b)java.math.BigIntegeropDiv(java.math.BigInteger a, java.math.BigInteger b)longopEqual(long a, long b)java.math.BigIntegeropEqual(java.math.BigInteger a, java.math.BigInteger b)longopFloat2Float(long a, FloatFormat outformat)java.math.BigIntegeropFloat2Float(java.math.BigInteger a, FloatFormat outformat)longopFloor(long a)java.math.BigIntegeropFloor(java.math.BigInteger a)longopInt2Float(long a, int sizein)java.math.BigIntegeropInt2Float(java.math.BigInteger a, int sizein, boolean signed)longopLess(long a, long b)java.math.BigIntegeropLess(java.math.BigInteger a, java.math.BigInteger b)longopLessEqual(long a, long b)java.math.BigIntegeropLessEqual(java.math.BigInteger a, java.math.BigInteger b)longopMult(long a, long b)java.math.BigIntegeropMult(java.math.BigInteger a, java.math.BigInteger b)longopNan(long a)java.math.BigIntegeropNan(java.math.BigInteger a)longopNeg(long a)java.math.BigIntegeropNeg(java.math.BigInteger a)longopNotEqual(long a, long b)java.math.BigIntegeropNotEqual(java.math.BigInteger a, java.math.BigInteger b)longopRound(long a)java.math.BigIntegeropRound(java.math.BigInteger a)longopSqrt(long a)java.math.BigIntegeropSqrt(java.math.BigInteger a)longopSub(long a, long b)java.math.BigIntegeropSub(java.math.BigInteger a, java.math.BigInteger b)longopTrunc(long a, int sizeout)java.math.BigIntegeropTrunc(java.math.BigInteger a, int sizeout)
-
-
-
Field Detail
-
BIG_NaN
public static final java.math.BigDecimal BIG_NaN
-
BIG_POSITIVE_INFINITY
public static final java.math.BigDecimal BIG_POSITIVE_INFINITY
-
BIG_NEGATIVE_INFINITY
public static final java.math.BigDecimal BIG_NEGATIVE_INFINITY
-
maxValue
public final java.math.BigDecimal maxValue
A constant holding the largest positive finite value
-
minValue
public final java.math.BigDecimal minValue
A constant holding the smallest positive normal value
-
-
Method Detail
-
getSize
public int getSize()
-
getHostFloat
public double getHostFloat(long encoding)
-
getHostFloat
public java.math.BigDecimal getHostFloat(java.math.BigInteger encoding)
-
getEncoding
public long getEncoding(double host)
-
getEncoding
public java.math.BigInteger getEncoding(java.math.BigDecimal value)
-
opEqual
public long opEqual(long a, long b)
-
opEqual
public java.math.BigInteger opEqual(java.math.BigInteger a, java.math.BigInteger b)
-
opNotEqual
public long opNotEqual(long a, long b)
-
opNotEqual
public java.math.BigInteger opNotEqual(java.math.BigInteger a, java.math.BigInteger b)
-
opLess
public long opLess(long a, long b)
-
opLess
public java.math.BigInteger opLess(java.math.BigInteger a, java.math.BigInteger b)
-
opLessEqual
public long opLessEqual(long a, long b)
-
opLessEqual
public java.math.BigInteger opLessEqual(java.math.BigInteger a, java.math.BigInteger b)
-
opNan
public long opNan(long a)
-
opNan
public java.math.BigInteger opNan(java.math.BigInteger a)
-
opAdd
public long opAdd(long a, long b)
-
opAdd
public java.math.BigInteger opAdd(java.math.BigInteger a, java.math.BigInteger b)
-
opSub
public long opSub(long a, long b)
-
opSub
public java.math.BigInteger opSub(java.math.BigInteger a, java.math.BigInteger b)
-
opDiv
public long opDiv(long a, long b)
-
opDiv
public java.math.BigInteger opDiv(java.math.BigInteger a, java.math.BigInteger b)
-
opMult
public long opMult(long a, long b)
-
opMult
public java.math.BigInteger opMult(java.math.BigInteger a, java.math.BigInteger b)
-
opNeg
public long opNeg(long a)
-
opNeg
public java.math.BigInteger opNeg(java.math.BigInteger a)
-
opAbs
public long opAbs(long a)
-
opAbs
public java.math.BigInteger opAbs(java.math.BigInteger a)
-
opSqrt
public long opSqrt(long a)
-
opSqrt
public java.math.BigInteger opSqrt(java.math.BigInteger a)
-
opInt2Float
public long opInt2Float(long a, int sizein)
-
opInt2Float
public java.math.BigInteger opInt2Float(java.math.BigInteger a, int sizein, boolean signed)
-
opFloat2Float
public long opFloat2Float(long a, FloatFormat outformat)
-
opFloat2Float
public java.math.BigInteger opFloat2Float(java.math.BigInteger a, FloatFormat outformat)
-
opTrunc
public long opTrunc(long a, int sizeout)
-
opTrunc
public java.math.BigInteger opTrunc(java.math.BigInteger a, int sizeout)
-
opCeil
public long opCeil(long a)
-
opCeil
public java.math.BigInteger opCeil(java.math.BigInteger a)
-
opFloor
public long opFloor(long a)
-
opFloor
public java.math.BigInteger opFloor(java.math.BigInteger a)
-
opRound
public long opRound(long a)
-
opRound
public java.math.BigInteger opRound(java.math.BigInteger a)
-
-