Bill Allombert on Mon, 09 Mar 2009 16:56:06 +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 02:33:31PM +0100, Vincent Lefevre wrote: > On 2009-03-09 10:06:07 +0100, Karim Belabas wrote: > > I guess this is the problem here. I'll download GMP-4.2.4 later today > > and see what changed. > > Make sure you test with ABI=mode32. The gmp.h file should contain: > > #define _LONG_LONG_LIMB 1 > > because the 32-bit ABI has 32-bit long's and GMP uses 64-bit limbs > for efficiency reasons. In any case, PARI is not going to work if the above condition is not fullfilled: sizeof(mp_limb_t)==sizeof(long)==sizeof(long*) so as far as I understand that precludes #define _LONG_LONG_LIMB 1 Cheers, Bill.