|
Ghidra 11.4.2
Ghidra internal decompiler documentation.
|
CPUI_POPCOUNT behavior. More...
#include <opbehavior.hh>
Public Member Functions | |
| OpBehaviorPopcount (void) | |
| Constructor. | |
| virtual uintb | evaluateUnary (int4 sizeout, int4 sizein, uintb in1) const |
| Emulate the unary op-code on an input value. | |
Public Member Functions inherited from ghidra::OpBehavior | |
| OpBehavior (OpCode opc, bool isun) | |
| A behavior constructor. | |
| OpBehavior (OpCode opc, bool isun, bool isspec) | |
| A special behavior constructor. | |
| OpCode | getOpcode (void) const |
| Get the opcode for this pcode operation. | |
| bool | isSpecial (void) const |
| Check if this is a special operator. | |
| bool | isUnary (void) const |
| Check if operator is unary. | |
| virtual uintb | evaluateBinary (int4 sizeout, int4 sizein, uintb in1, uintb in2) const |
| Emulate the binary op-code on input values. | |
| virtual uintb | recoverInputBinary (int4 slot, int4 sizeout, uintb out, int4 sizein, uintb in) const |
| Reverse the binary op-code operation, recovering an input value. | |
| virtual uintb | recoverInputUnary (int4 sizeout, uintb out, int4 sizein) const |
| Reverse the unary op-code operation, recovering the input value. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ghidra::OpBehavior | |
| static void | registerInstructions (vector< OpBehavior * > &inst, const Translate *trans) |
| Build all pcode behaviors. | |
CPUI_POPCOUNT behavior.
|
virtual |
Emulate the unary op-code on an input value.
| sizeout | is the size of the output in bytes |
| sizein | is the size of the input in bytes |
| in1 | is the input value |
Reimplemented from ghidra::OpBehavior.