2015-03-30 Niels Möller <nisse@diamant.hack.org>
+ * version.h.in (GMP_NUMB_BITS) [NETTLE_USE_MINI_GMP]: Move
+ definition here (uses configure substitution).
+ * bignum.h (GMP_NUMB_BITS): ...old location.
+
* nettle.texinfo: Updated version number.
(Installation): Document some more configure options.
#if NETTLE_USE_MINI_GMP
# include "mini-gmp.h"
-/* We need a preprocessor constant for GMP_NUMB_BITS, simply using
- sizeof(mp_limb_t) * CHAR_BIT is not good enough. */
-# define GMP_NUMB_BITS @GMP_NUMB_BITS@
# define GMP_NUMB_MASK (~(mp_limb_t) 0)
/* Functions missing in older gmp versions, and checked for with ifdef */
#define NETTLE_USE_MINI_GMP @NETTLE_USE_MINI_GMP@
+/* We need a preprocessor constant for GMP_NUMB_BITS, simply using
+ sizeof(mp_limb_t) * CHAR_BIT is not good enough. */
+#if NETTLE_USE_MINI_GMP
+# define GMP_NUMB_BITS @GMP_NUMB_BITS@
+#endif
+
#ifdef __cplusplus
}
#endif