[issue1770] Patch for i386 to use bsrl for libc fls().

Venkatesh Srinivas (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Thu Jun 3 21:28:51 PDT 2010


Venkatesh Srinivas <me at acm.jhu.edu> added the comment:

I just tested the i386 fls against its C equivalent on every input, to see that 
it produces the same output; it passed. Running the C version, optimized by 
gcc, took 49 sec on my hardware, the assembler version 10sec. 

The x86_64 version is tested on a few test inputs, but not in the Dfly libc, 
only as standalone .S files.

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1770>
_____________________________________________________






More information about the Submit mailing list