v5.0.1, Mac, 32-bit: gmp_snprintf problem for (high) multi-limb integers

John McDermott jjm at mcs.st-and.ac.uk
Mon Mar 28 14:05:26 CEST 2011


Dear Torbjörn,

On 28 Mar 2011, at 10:24, Torbjorn Granlund wrote:

> Max Neunhoeffer <neunhoef at mcs.st-and.ac.uk> writes:
> 
>  I am no assembler expert, but as far as I see it the value
>  to be looked up is in the %eax register. However, the code
>             movzwl  -1024+__gmpn_invert_limb_tab, %eax
>  does not actually use that (as far as I see), that is because during
>  the m4 translation the
>      (%eax, %eax)
>  has vanished.
> 
> Oh, this makes sense.  I think you hit the nail on the head.  Please try
> this patch:
> 
> <foo>

I have tested this, on several Macs, with our software GAP and with the small test program included in our initial report and am really pleased to be able to say that the issues we reported are no longer present in a patched GMP 5.0.1.

Thank you very much!

John

>  It seems also that in the relocatable version the error does not occur
>  (again, I am not so sure about this).
> 
> It is really bad that GMP's "make check" does not test both versions.
> We really ought to fix that.
> 
> -- 
> Torbjörn

--
John McDermott
Scientific Officer
Centre for Interdisciplinary Research in Computational Algebra
School of Computer Science
University of St Andrews

The University of St Andrews is committed to sustainable practices and the preservation of the environment.
Please do not print this email unless absolutely necessary.

The University of St Andrews is a charity registered in Scotland : No SC01353



More information about the gmp-bugs mailing list