gmp-4.1.2 assertion failure

Jason jasonmoxham at
Sat Feb 14 16:25:24 CET 2004

On Wednesday 11 Feb 2004 9:30 pm, Kevin Ryde wrote:
> Jason <jasonmoxham at> writes:
> > note this still may not be correct for all cases as
> > perhaps (cnt-GMP_NAIL_BITS)*e or bsize*e could overflow ?
> Yep, they could, for instance when e==ULONG_MAX.  It'll need to be a
> two-limb calculation using umul_ppmm.

attached replacement for the line 359 in mpz/n_pow_ui.c

not sure how you want to do the maximum bound thing


-------------- next part --------------
A non-text attachment was scrubbed...
Name: jayfix.c
Type: text/x-csrc
Size: 865 bytes
Desc: not available
Url : /list-archives/gmp-bugs/attachments/20040214/62daa52e/jayfix.bin

More information about the gmp-bugs mailing list