Vincent Lefevre on Mon, 09 Mar 2009 14:35:17 +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 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.

Vincent Lefèvre <> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)