I've ported GMP to Mac Pro. GMPbench > 7700
Jason Worth Martin
martinjw at jmu.edu
Thu Oct 12 22:45:44 CEST 2006
Hi,
I've ported GMP to the Mac Pro (and it passes "make check"). I
thought you might be interested since I saw some archived posts on
the poor Core 2 results. I re-wrote add_n.asm and sub_n.asm and got a
nice speed up by unrolling the loop and getting rid of the "inc"
instruction. I've attached a tarball with the relevant files and
details.
I believe that this code could be ported to Core 2 Linux machines, but
the GNU assembler doesn't want to let me use the "sahf" and "lahf"
instructions to save the flags between loop iterations. The Apple
assembler doesn't have a problem with it. I'll see about replacing
those instructions with a combitation of "bt" and "test" for a Linux
version.
--jason
Jason W. Martin
Asst. Prof. of Mathematics
James Madison University
--
"Ever my heart rises as we draw near the mountains.
There is good rock here." -- Gimli, son of Gloin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-4.2.1-porting-to-Mac-Pro.tar.gz
Type: application/x-gzip
Size: 4312 bytes
Desc: not available
Url : http://gmplib.org/list-archives/gmp-devel/attachments/20061012/d428eb30/attachment.bin
More information about the gmp-devel
mailing list