count_leading_zeros on 64-bit ppc

Torbjorn Granlund tg-this-will-bounce-but-I-am-subscribed-to-the-list-honest at
Sun Jun 3 23:55:59 CEST 2007

David Harvey <dmharvey at> writes:

  I'm pretty sure this is a 64-bit build. To be sure, I'm now compiling  
  gcc -m64 count-test.c -I/Users/david/gmp/install/include/ -L/Users/ 
  david/gmp/install/lib/ -lgmp
I took you code and compiled it, and reproduced you error.  But your
setup isn't "GMP"; it is your own stuff.

Then I changed your code to use the GMP style, and it works right.
Think about it, if count_leading_zeros didn't work right, not much
would work right in GMP.

  > I'll let you debug the exact cause of the failure.  :-)
  It sounds as if you are suggesting that you know exactly what is  
  wrong, and you are teasing me :-)

I don't.  And I don't think it will take me less time to debug the
code than it would take for you.


More information about the gmp-bugs mailing list