On Core2, GMP 4.2.2 Xeon code more efficient than Core2 code

Michael Abshoff Michael.Abshoff at fsmath.mathematik.uni-dortmund.de
Wed Dec 12 04:03:33 CET 2007

Vincent Lefevre wrote:

Hello Vincent,

> I have built GMP 4.2.2 with default options on a Xeon machine and
> on an i686 Core2 machine, installed in two different directories
> under NFS.
> I've tested a code of mine with both the Xeon GMP library and the
> Core2 GMP library (checked with ldd). My code uses only mpn_add_n
> for the GMP part.
> With Xeon GMP code:  25.5 seconds
> With Core2 GMP code: 33.7 seconds
> Has anyone else noticed a similar problem?

Yep, there are more efficient Core 2 assembly routines for gmp at

http://www.math.jmu.edu/~martin/ [scroll to the bottom of that page]



> --
> Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
> _______________________________________________
> gmp-bugs mailing list
> gmp-bugs at swox.com
> https://gmplib.org/mailman/listinfo/gmp-bugs

More information about the gmp-bugs mailing list