/* -*-c-*-
*
- * $Id: mpx.h,v 1.8 1999/12/11 10:57:43 mdw Exp $
+ * $Id: mpx.h,v 1.9 1999/12/22 15:49:07 mdw Exp $
*
* Low level multiprecision arithmetic
*
/*----- Revision history --------------------------------------------------*
*
* $Log: mpx.h,v $
+ * Revision 1.9 1999/12/22 15:49:07 mdw
+ * New function for division by a small integer.
+ *
* Revision 1.8 1999/12/11 10:57:43 mdw
* Karatsuba squaring algorithm.
*
const mpw */*dv*/, const mpw */*dvl*/,
mpw */*sv*/, mpw */*svl*/);
+/* --- @mpx_udivn@ --- *
+ *
+ * Arguments: @mpw *qv, *qvl@ = storage for the quotient (may overlap
+ * dividend)
+ * @const mpw *rv, *rvl@ = dividend
+ * @mpw d@ = single-precision divisor
+ *
+ * Returns: Remainder after divison.
+ *
+ * Use: Performs a single-precision division operation.
+ */
+
+extern mpw mpx_udivn(mpw */*qv*/, mpw */*qvl*/,
+ const mpw */*rv*/, const mpw */*rvl*/, mpw /*d*/);
+
/*----- Karatsuba multiplication algorithms -------------------------------*/
/* --- @KARATSUBA_CUTOFF@ --- *
* required is proportional to the recursion depth.
*/
-#define KARATSUBA_SLOP 32
+#define KARATSUBA_SLOP 64
/* --- @mpx_kmul@ --- *
*