CPU dispatching in GMP is flawed

Vincent Lefevre vincent at vinc17.net
Mon Aug 9 16:08:37 CEST 2010


On 2010-08-09 10:32:33 -0300, Jonathan Blanchard wrote:
> On Mon, Aug 9, 2010 at 10:14 AM, Agner Fog <agner at agner.org> wrote:
> > [...] CPU dispatching should be based on instruction sets for
> > unknown processors.

I agree.

> True that GMP is blazingly fast on my Phenom :D In case where the
> build process of GMP mis-detect or can't detect the cpu it's possible
> to force the architecture it will build for. Most via processor have
> 100% compatibility with an equivalent Intel or AMD cpu.

But this means that you cannot have a fat binary in such a case.
This can be a problem for binary distributions, in particular.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list