Can't that one be transformed to do a Bit Scan Reverse? I guess there are alogorithms
for it too. Try near the link I provided. Or try the Angner Fog's optimization manual.
If that does not works you could try SuperOptimizer. Is a program that finds algorithms in
assembler for some arch (x86 included of course) by means of trying instructions using
bruteforce (you can use several computers if you want), usually can be converted back to a
HLL. This function is little enought to let superoptimizer work. Find it, is open source
software, a little complex and MACROfied piece of code but somehow modifiable to suit your
needs.
Best Regards
Waldo Alvarez
________________________________
From: ros-dev-bounces(a)reactos.com on behalf of Royce Mitchell III
Sent: Fri 3/25/2005 4:19 PM
To: ReactOS Development List
Subject: Re: [ros-dev] ping Alex regarding log2() for scheduler
Waldo Alvarez Cañizares wrote:
but if you are searching a fast BSF replacement...
Unfortunately we have no need of BSF :(
Is there a similar algo for BSR, which is what we need?
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.com
http://reactos.com:8080/mailman/listinfo/ros-dev