/* -*-c-*-
*
- * $Id: mpx.h,v 1.10 2000/10/08 12:06:12 mdw Exp $
+ * $Id: mpx.h,v 1.11 2000/10/08 15:48:35 mdw Exp $
*
* Low level multiprecision arithmetic
*
/*----- Revision history --------------------------------------------------*
*
* $Log: mpx.h,v $
+ * Revision 1.11 2000/10/08 15:48:35 mdw
+ * Rename Karatsuba constants now that we have @gfx_kmul@ too.
+ *
* Revision 1.10 2000/10/08 12:06:12 mdw
* Provide @mpx_ueq@ for rapidly testing equality of two integers.
*
/*----- Karatsuba multiplication algorithms -------------------------------*/
-/* --- @KARATSUBA_CUTOFF@ --- *
+/* --- @MPK_THRESH@ --- *
*
* This is the limiting length for using Karatsuba algorithms. It's best to
* use the simpler classical multiplication method on numbers smaller than
* this.
*/
-#define KARATSUBA_CUTOFF 16
+#define MPK_THRESH 16
-/* --- @KARATSUBA_SLOP@ --- *
+/* --- @MPK_SLOP@ --- *
*
* The extra number of words required as scratch space by the Karatsuba
* routines. This is a (generous) guess, since the actual amount of space
* required is proportional to the recursion depth.
*/
-#define KARATSUBA_SLOP 64
+#define MPK_SLOP 64
/* --- @mpx_kmul@ --- *
*
* The destination and scratch buffers must be twice as large as
* the larger argument. The scratch space must be twice as
* large as the larger argument, plus the magic number
- * @KARATSUBA_SLOP@.
+ * @MPK_SLOP@.
*/
extern void mpx_kmul(mpw */*dv*/, mpw */*dvl*/,
*
* The destination must be twice as large as the argument. The
* scratch space must be twice as large as the argument, plus
- * the magic number @KARATSUBA_SLOP@.
+ * the magic number @MPK_SLOP@.
*/
extern void mpx_ksqr(mpw */*dv*/, mpw */*dvl*/,