Enum Class OpBehaviorIntSub
- All Implemented Interfaces:
BinaryOpBehavior, OpBehavior, Serializable, Comparable<OpBehaviorIntSub>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface OpBehavior
BOOL_AND, BOOL_NEGATE, BOOL_OR, BOOL_XOR, BRANCH, BRANCHIND, CALL, CALLIND, CALLOTHER, CAST, CBRANCH, COPY, CPOOLREF, FLOAT_ABS, FLOAT_ADD, FLOAT_CEIL, FLOAT_DIV, FLOAT_EQUAL, FLOAT_FLOAT2FLOAT, FLOAT_FLOOR, FLOAT_INT2FLOAT, FLOAT_LESS, FLOAT_LESSEQUAL, FLOAT_MULT, FLOAT_NAN, FLOAT_NEG, FLOAT_NOTEQUAL, FLOAT_ROUND, FLOAT_SQRT, FLOAT_SUB, FLOAT_TRUNC, INDIRECT, INSERT, INT_2COMP, INT_ADD, INT_AND, INT_CARRY, INT_DIV, INT_EQUAL, INT_LEFT, INT_LESS, INT_LESSEQUAL, INT_MULT, INT_NEGATE, INT_NOTEQUAL, INT_OR, INT_REM, INT_RIGHT, INT_SBORROW, INT_SCARRY, INT_SDIV, INT_SEXT, INT_SLESS, INT_SLESSEQUAL, INT_SREM, INT_SRIGHT, INT_SUB, INT_XOR, INT_ZEXT, LOAD, LZCOUNT, MULTIEQUAL, NEW, PIECE, POPCOUNT, PTRADD, PTRSUB, RETURN, SEGMENTOP, SPULL, STORE, SUBPIECE, ZPULL -
Method Summary
Modifier and TypeMethodDescriptionlongevaluateBinary(int sizeout, int sizein, long in1, long in2) Evaluate the binary operation using long dataevaluateBinary(int sizeout, int sizein, BigInteger in1, BigInteger in2) Evaluate the binary operation using BigInteger dataintopcode()Returns the opcode implemented.static OpBehaviorIntSubReturns the enum constant of this class with the specified name.static OpBehaviorIntSub[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OP_INT_SUB
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
opcode
public int opcode()Description copied from interface:OpBehaviorReturns the opcode implemented.- Specified by:
opcodein interfaceOpBehavior- Returns:
- the opcode implemented
-
evaluateBinary
public long evaluateBinary(int sizeout, int sizein, long in1, long in2) Description copied from interface:BinaryOpBehaviorEvaluate the binary operation using long dataNOTE: 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.
- Specified by:
evaluateBinaryin interfaceBinaryOpBehavior- Parameters:
sizeout- intended output size (bytes)sizein- in1 size (bytes)in1- unsigned input 1in2- unsigned input 2- Returns:
- operation result.
- See Also:
-
evaluateBinary
Description copied from interface:BinaryOpBehaviorEvaluate the binary operation using BigInteger dataNOTE: 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.
- Specified by:
evaluateBinaryin interfaceBinaryOpBehavior- Parameters:
sizeout- intended output size (bytes)sizein- in1 size (bytes)in1- unsigned input 1in2- unsigned input 2- Returns:
- operation result.
- See Also:
-