Bill Allombert on Mon, 09 Mar 2009 17:35:03 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Incorrect result with GMP 4.2.4 under Mac OS X (PowerPC)


On Mon, Mar 09, 2009 at 05:00:51PM +0100, Vincent Lefevre wrote:
> On 2009-03-09 16:49:20 +0100, Bill Allombert wrote:
> > In any case, PARI is not going to work if the above condition is not
> > fullfilled:
> > 
> >  sizeof(mp_limb_t)==sizeof(long)==sizeof(long*)
> 
> Could this condition be checked in Configure?

Sure. Would the attached file do the trick ? (to be put as
config/gmp_version.c).

As an aside, I managed to build a 64bit PARI with a 64bit GMP on Darwin
without too much trouble.

Cheers,
Bill.
#include <stdio.h>
#include <gmp.h>
void f(void) { mpn_gcdext(NULL,NULL, NULL, NULL, 0, NULL, 0); }
main(){ 
  if(sizeof(mp_limb_t) == sizeof(long))
    printf("%s", gmp_version);
  else return 1;
}