Interface RealConstant<R extends RealConstant<R>>
- All Superinterfaces:
Acceptor<ConstantVisitor>,ComparableConstant<R>,Constant,EquivTo,Immediate,JimpleIR,NumericConstant<R>,Value
- All Known Implementing Classes:
DoubleConstant,FloatConstant
Base type for floating point constants.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NonNull IntConstantPerforms the indicated floating point comparison.@NonNull IntConstantPerforms the indicated floating point comparison.Methods inherited from interface sootup.core.jimple.common.constant.ComparableConstant
equalEqual, notEqualMethods inherited from interface sootup.core.jimple.common.constant.Constant
equivHashCode, equivTo, getUses, toStringMethods inherited from interface sootup.core.jimple.common.constant.NumericConstant
add, divide, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, multiply, negate, remainder, subtract
-
Method Details
-
cmpl
Performs the indicated floating point comparison. ForNaNcomparisons-1is returned.- Parameters:
constant- the value to compare with- Returns:
0if values are equal,1if passed value less, or-1if passed value greater. When any of the values isNaNreturns-1.
-
cmpg
Performs the indicated floating point comparison. ForNaNcomparisons1is returned.- Parameters:
constant- the value to compare with- Returns:
0if values are equal,1if passed value less, or-1if passed value greater. When any of the values isNaNreturns1.
-