Enum Class OpBehaviorIntAnd

java.lang.Object
java.lang.Enum<OpBehaviorIntAnd>
ghidra.pcode.opbehavior.OpBehaviorIntAnd
All Implemented Interfaces:
BinaryOpBehavior, OpBehavior, Serializable, Comparable<OpBehaviorIntAnd>, Constable

public enum OpBehaviorIntAnd extends Enum<OpBehaviorIntAnd> implements BinaryOpBehavior
  • Enum Constant Details

  • Method Details

    • values

      public static OpBehaviorIntAnd[] 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

      public static OpBehaviorIntAnd valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • opcode

      public int opcode()
      Description copied from interface: OpBehavior
      Returns the opcode implemented.
      Specified by:
      opcode in interface OpBehavior
      Returns:
      the opcode implemented
    • evaluateBinary

      public long evaluateBinary(int sizeout, int sizein, long in1, long in2)
      Description copied from interface: BinaryOpBehavior
      Evaluate the binary operation using long data

      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.

      Specified by:
      evaluateBinary in interface BinaryOpBehavior
      Parameters:
      sizeout - intended output size (bytes)
      sizein - in1 size (bytes)
      in1 - unsigned input 1
      in2 - unsigned input 2
      Returns:
      operation result.
      See Also:
    • evaluateBinary

      public BigInteger evaluateBinary(int sizeout, int sizein, BigInteger in1, BigInteger in2)
      Description copied from interface: BinaryOpBehavior
      Evaluate the binary operation using BigInteger data

      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.

      Specified by:
      evaluateBinary in interface BinaryOpBehavior
      Parameters:
      sizeout - intended output size (bytes)
      sizein - in1 size (bytes)
      in1 - unsigned input 1
      in2 - unsigned input 2
      Returns:
      operation result.
      See Also: