UIMagicDiv

This forum is for members of the public to post any announcements relating to Diablo 2 Mod Making including mod and patch releases amongst other similar subjects.
User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
South Africa

Hand-picked

UIMagicDiv

Post by Necrolis » Mon Jan 10, 2011 10:20 am

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.
You do not have the required permissions to view the files attached to this post.
Image
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

User avatar
Mentor
Junior Member
Champion of the Light
Posts: 359
Joined: Wed Dec 07, 2005 6:24 pm
Romania

Re: UIMagicDiv

Post by Mentor » Tue Jan 11, 2011 7:52 am

Thanks for this! This sure boosts reversal speed. :rightthumb:

Return to “Member Аnnouncements”