Shouldn't this be a configure test instead? What does it mean?
#if GMP_NUMB_BITS != SIZEOF_MP_LIMB_T * CHAR_BIT #error Cannot cope with GMP using nail bits. #endif
To me it looks like it fails if gmp doesn't use all bits in it's limb type (using say 30 bits of a long instead of 4*8).
/ Mirar
Previous text:
2004-04-21 10:49: Subject: Gmp
Shouldn't this be a configure test instead? What does it mean?
#if GMP_NUMB_BITS != SIZEOF_MP_LIMB_T * CHAR_BIT #error Cannot cope with GMP using nail bits. #endif
/ Martin Nilsson (provokatör)
If/when there are gmp libraries that actually use nail bits, the code there should be fixed to cope with them. There's a bit of talk about nail bits in the in the gmp manual as a hypothetical optimization in some future version. The #error was only written as a precaution so that the code shouldn't fail silently. Have you trigged it?
/ Martin Stjernholm, Roxen IS
Previous text:
2004-04-21 10:49: Subject: Gmp
Shouldn't this be a configure test instead? What does it mean?
#if GMP_NUMB_BITS != SIZEOF_MP_LIMB_T * CHAR_BIT #error Cannot cope with GMP using nail bits. #endif
/ Martin Nilsson (provokatör)
Yes, but not building as root fixed it(!?).
/ Martin Nilsson (provokatör)
Previous text:
2004-04-23 03:07: Subject: Gmp
If/when there are gmp libraries that actually use nail bits, the code there should be fixed to cope with them. There's a bit of talk about nail bits in the in the gmp manual as a hypothetical optimization in some future version. The #error was only written as a precaution so that the code shouldn't fail silently. Have you trigged it?
/ Martin Stjernholm, Roxen IS
I must have destroyed the environment or something (it was a few days back), because I can't reproduce it now. libgmp 3.3.2.
/ Martin Nilsson (provokatör)
Previous text:
2004-04-23 03:23: Subject: Gmp
Odd indeed. It could be interesting to see what the three defines expanded to in that case. Which version of gmp?
/ Martin Stjernholm, Roxen IS
I see that nail bits actually can occur in gmp 4.1.2 if it's compiled with --enable-nails, so it might be necessary to look at that code sometime. But I think it's safe to assume that no stock installed shared gmp library will be compiled that way because it isn't binary compatible.
/ Martin Stjernholm, Roxen IS
Previous text:
2004-04-23 03:33: Subject: Gmp
I must have destroyed the environment or something (it was a few days back), because I can't reproduce it now. libgmp 3.3.2.
/ Martin Nilsson (provokatör)
pike-devel@lists.lysator.liu.se