Package ghidra.pcode.opbehavior
Class OpBehaviorFloatDiv
- java.lang.Object
-
- ghidra.pcode.opbehavior.OpBehavior
-
- ghidra.pcode.opbehavior.BinaryOpBehavior
-
- ghidra.pcode.opbehavior.OpBehaviorFloatDiv
-
public class OpBehaviorFloatDiv extends BinaryOpBehavior
-
-
Constructor Summary
Constructors Constructor Description OpBehaviorFloatDiv()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
evaluateBinary(int sizeout, int sizein, long in1, long in2)
Evaluate the binary (2 input args) operation using long datajava.math.BigInteger
evaluateBinary(int sizeout, int sizein, java.math.BigInteger in1, java.math.BigInteger in2)
Evaluate the binary (2 input args) operation using BigInteger data-
Methods inherited from class ghidra.pcode.opbehavior.OpBehavior
getOpCode
-
-
-
-
Method Detail
-
evaluateBinary
public long evaluateBinary(int sizeout, int sizein, long in1, long in2)
Description copied from class:BinaryOpBehavior
Evaluate the binary (2 input args) operation using long data- Specified by:
evaluateBinary
in classBinaryOpBehavior
- Parameters:
sizeout
- intended output size (bytes)sizein
- in1 size (bytes)in1
- unsigned input 1in2
- unsigned input 2- Returns:
- operation result. NOTE: if the operation overflows bits may be set beyond the specified sizeout. Even though results should be treated as unsigned it may be returned as a signed long value. It is expected that the returned result always be properly truncated by the caller since the evaluation may not - this is done to conserve emulation cycles.
- See Also:
Utils.longToBytes(long, int, boolean)
,Utils.bytesToLong(byte[], int, boolean)
-
evaluateBinary
public java.math.BigInteger evaluateBinary(int sizeout, int sizein, java.math.BigInteger in1, java.math.BigInteger in2)
Description copied from class:BinaryOpBehavior
Evaluate the binary (2 input args) operation using BigInteger data- Specified by:
evaluateBinary
in classBinaryOpBehavior
- Parameters:
sizeout
- intended output size (bytes)sizein
- in1 size (bytes)in1
- unsigned input 1in2
- unsigned input 2- Returns:
- operation result. NOTE: if the operation overflows bits may be set beyond the specified sizeout. Even though results should be treated as unsigned it may be returned as a signed value. It is expected that the returned result always be properly truncated by the caller since the evaluation may not - this is done to conserve emulation cycles.
- See Also:
Utils.bigIntegerToBytes(BigInteger, int, boolean)
,Utils.bytesToBigInteger(byte[], int, boolean, boolean)
-
-