mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
An optimized division corner case
This commit is contained in:
parent
90f6b5c7e5
commit
77b1a6bf4b
3 changed files with 89 additions and 15 deletions
|
@ -1194,6 +1194,7 @@ public:
|
|||
class RuleDivOpt : public Rule {
|
||||
static uintb calcDivisor(uintb n,uint8 y,int4 xsize); ///< Calculate the divisor
|
||||
static void moveSignBitExtraction(Varnode *firstVn,Varnode *replaceVn,Funcdata &data);
|
||||
static bool checkFormOverlap(PcodeOp *op); ///< If form rooted at given PcodeOp is superseded by an overlapping form
|
||||
public:
|
||||
RuleDivOpt(const string &g) : Rule( g, 0, "divopt") {} ///< Constructor
|
||||
virtual Rule *clone(const ActionGroupList &grouplist) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue