From: Mark Wooding Date: Tue, 30 Apr 2013 22:00:34 +0000 (+0100) Subject: mpmul.[ch]: Move internal `HWM' and `LWM' constants to implementation. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/ea932d59b3071ce00f9e510aad014ad64a3dc48c mpmul.[ch]: Move internal `HWM' and `LWM' constants to implementation. No idea what I was thinking when I put them in the public header file. --- diff --git a/mpmul.c b/mpmul.c index 0b597f4..1f932b0 100644 --- a/mpmul.c +++ b/mpmul.c @@ -61,6 +61,9 @@ void mpmul_init(mpmul *b) * context; this sort of rules out @mp_build@ integers. */ +#define HWM (MPMUL_DEPTH - 20) +#define LWM (MPMUL_DEPTH / 2) + void mpmul_add(mpmul *b, mp *x) { size_t i = b->i; diff --git a/mpmul.h b/mpmul.h index ecd7b3a..bd1f156 100644 --- a/mpmul.h +++ b/mpmul.h @@ -74,9 +74,6 @@ #define MPMUL_DEPTH (2 * (CHAR_BIT * sizeof(size_t) + 10)) -#define HWM (MPMUL_DEPTH - 20) -#define LWM (MPMUL_DEPTH / 2) - /*----- Data structures ---------------------------------------------------*/ typedef struct mpmul {