Possible GMP bug

Peter Harding peter.a.harding at gmail.com
Sun Jan 29 02:00:00 CET 2012

As per: http://gmplib.org/manual/Reporting-Bugs.html

GMP version 5.0.3
Since make check failed, I did not install, and so have no error to
reproduce. Can install anyway and attempt to find miscalculation.
make check results in one error (see below)
no configuration options
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Linux ORIGIN 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011
i686 athlon i386 GNU/Linux
bug not related to configure or asm

PASS: t-bswap
PASS: t-constants
count_leading_zeros wrong
  n    =0x
  want 0
  got  31
/bin/bash: line 5:  2993 Aborted                 ${dir}$tst
FAIL: t-count_zeros
PASS: t-gmpmax
PASS: t-hightomask
PASS: t-modlinv
PASS: t-popc
PASS: t-parity
PASS: t-sub


More information about the gmp-bugs mailing list