Enum Class OpBehaviorFloatTrunc

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

public enum OpBehaviorFloatTrunc extends Enum<OpBehaviorFloatTrunc> implements UnaryOpBehavior
  • Enum Constant Details

  • Method Details

    • values

      public static OpBehaviorFloatTrunc[] 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 OpBehaviorFloatTrunc 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
    • evaluateUnary

      public long evaluateUnary(int sizeout, int sizein, long in1)
      Description copied from interface: UnaryOpBehavior
      Evaluate the unary 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:
      evaluateUnary in interface UnaryOpBehavior
      Parameters:
      sizeout - intended output size (bytes)
      sizein - in1 size (bytes)
      in1 - unsigned input 1
      Returns:
      operation result.
      See Also:
    • evaluateUnary

      public BigInteger evaluateUnary(int sizeout, int sizein, BigInteger in1)
      Description copied from interface: UnaryOpBehavior
      Evaluate the unary 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:
      evaluateUnary in interface UnaryOpBehavior
      Parameters:
      sizeout - intended output size (bytes)
      sizein - in1 size (bytes)
      in1 - unsigned input 1
      Returns:
      operation result.
      See Also: