mpmul.[ch]: Move internal `HWM' and `LWM' constants to implementation.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 30 Apr 2013 22:00:34 +0000 (23:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 30 Apr 2013 22:00:34 +0000 (23:00 +0100)
No idea what I was thinking when I put them in the public header file.

mpmul.c
mpmul.h

diff --git a/mpmul.c b/mpmul.c
index 0b597f4..1f932b0 100644 (file)
--- a/mpmul.c
+++ b/mpmul.c
@@ -61,6 +61,9 @@ void mpmul_init(mpmul *b)
  *             context; this sort of rules out @mp_build@ integers.
  */
 
  *             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;
 void mpmul_add(mpmul *b, mp *x)
 {
   size_t i = b->i;
diff --git a/mpmul.h b/mpmul.h
index ecd7b3a..bd1f156 100644 (file)
--- a/mpmul.h
+++ b/mpmul.h
@@ -74,9 +74,6 @@
 
 #define MPMUL_DEPTH (2 * (CHAR_BIT * sizeof(size_t) + 10))
 
 
 #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 {
 /*----- Data structures ---------------------------------------------------*/
 
 typedef struct mpmul {