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.BigDecimal
BIG_NaN
static java.math.BigDecimal
BIG_NEGATIVE_INFINITY
static java.math.BigDecimal
BIG_POSITIVE_INFINITY
java.math.BigDecimal
maxValue
A constant holding the largest positive finite valuejava.math.BigDecimal
minValue
A constant holding the smallest positive normal value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEncoding(double host)
java.math.BigInteger
getEncoding(java.math.BigDecimal value)
double
getHostFloat(long encoding)
java.math.BigDecimal
getHostFloat(java.math.BigInteger encoding)
int
getSize()
long
opAbs(long a)
java.math.BigInteger
opAbs(java.math.BigInteger a)
long
opAdd(long a, long b)
java.math.BigInteger
opAdd(java.math.BigInteger a, java.math.BigInteger b)
long
opCeil(long a)
java.math.BigInteger
opCeil(java.math.BigInteger a)
long
opDiv(long a, long b)
java.math.BigInteger
opDiv(java.math.BigInteger a, java.math.BigInteger b)
long
opEqual(long a, long b)
java.math.BigInteger
opEqual(java.math.BigInteger a, java.math.BigInteger b)
long
opFloat2Float(long a, FloatFormat outformat)
java.math.BigInteger
opFloat2Float(java.math.BigInteger a, FloatFormat outformat)
long
opFloor(long a)
java.math.BigInteger
opFloor(java.math.BigInteger a)
long
opInt2Float(long a, int sizein)
java.math.BigInteger
opInt2Float(java.math.BigInteger a, int sizein, boolean signed)
long
opLess(long a, long b)
java.math.BigInteger
opLess(java.math.BigInteger a, java.math.BigInteger b)
long
opLessEqual(long a, long b)
java.math.BigInteger
opLessEqual(java.math.BigInteger a, java.math.BigInteger b)
long
opMult(long a, long b)
java.math.BigInteger
opMult(java.math.BigInteger a, java.math.BigInteger b)
long
opNan(long a)
java.math.BigInteger
opNan(java.math.BigInteger a)
long
opNeg(long a)
java.math.BigInteger
opNeg(java.math.BigInteger a)
long
opNotEqual(long a, long b)
java.math.BigInteger
opNotEqual(java.math.BigInteger a, java.math.BigInteger b)
long
opRound(long a)
java.math.BigInteger
opRound(java.math.BigInteger a)
long
opSqrt(long a)
java.math.BigInteger
opSqrt(java.math.BigInteger a)
long
opSub(long a, long b)
java.math.BigInteger
opSub(java.math.BigInteger a, java.math.BigInteger b)
long
opTrunc(long a, int sizeout)
java.math.BigInteger
opTrunc(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)
-
-