For those who do code reversal, one of the most annoying things is encountering a little something called magic division, this is where a compiler substitutes divisions for multiplications by a constant with an optional shift/add. So to speed things up, I made a tool that can search for either divisors, given a constant, or constants given a divisor.
Credits:
Hackers Delight for the algorithms, I just wrapped them in some crappy UI code(which is included!).
Notes:
This tool is only for 32 bit code, the 64 bit version can be easily made with the source provided.
This tool requires the VC 2008 runtime.
The binary is in the Release Folder.
UIMagicDiv
UIMagicDiv
You do not have the required permissions to view the files attached to this post.
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal
Re: UIMagicDiv
Thanks for this! This sure boosts reversal speed.
1.10 New Music Tutorial | 1.10 Quest - Related Sounds Offsets | 1.10 RandomClassSkills | 1.10 Boss Death GFX
1.10 EvilHoles Fixed: vid & code | Spawning Missile: vid & txt | 1.10 Uber Quest | 1.10 Hardcoding Aurae to Units |
1.10 EvilHoles Fixed: vid & code | Spawning Missile: vid & txt | 1.10 Uber Quest | 1.10 Hardcoding Aurae to Units |