[pypy-dev] PyPy Assembler SQRT Patch

Joe qbproger at gmail.com
Tue Apr 26 23:51:06 CEST 2011


Attached is a patch to allow pypy to use SQRTSD rather than calling
out to libc.  This resulted in a 2x speedup, that scaled as the
benchmark took longer.
When i added another 0 to the end of the benchmark it was still a 2x speedup.

benchmark results:
http://paste.pocoo.org/show/378122/

I'll be happy to answer any questions about the patch.
Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqrtsd.patch
Type: application/octet-stream
Size: 14448 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110426/ecde1a3d/attachment.obj>


More information about the Pypy-dev mailing list