On 03/02/11 21:24, Glyn Kennington wrote:
I wrote:
I think the feature can be added in libr_hash instead, which already
uses<math.h>/libm, so no extra dependencies are needed. Patch coming
when I have time to try out a few different methods and look at code
duplication vs performance.
Here it is: Just a wrapper function that calculates the maximum and
divides by it. Could also be useful for eg. plotting a graph of entropy
vs. file offset.
I tried a few ways of avoiding the repeated calculation of log(2), but
there was< 1% performance gain, and it resulted in either less
portability or somehow setting it up at compile time/startup.
Glyn
applied! :) Thanks for the patch and sorry for the late response.
Nibble and me were really busy IRL these days (rootedcon and so on)..
we are planning to release 0.7 today, your patch will be in time for
this release,
but we wanted to have some more spare to do it right.
Sincerely,
--pancake
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org