Merge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/public-git/catacomb/
[u/mdw/catacomb] / mp-misc.c
index 7f5513f..e615b3f 100644 (file)
--- a/mp-misc.c
+++ b/mp-misc.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: mp-misc.c,v 1.1 1999/11/17 18:02:16 mdw Exp $
+ * $Id: mp-misc.c,v 1.4 2004/04/08 01:36:15 mdw Exp $
  *
  * Miscellaneous multiprecision support functions
  *
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: mp-misc.c,v $
- * Revision 1.1  1999/11/17 18:02:16  mdw
- * New multiprecision integer arithmetic suite.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "mp.h"
 
-/*----- Paranoia management -----------------------------------------------*/
-
-/* --- @mp_burn@ --- *
- *
- * Arguments:  @mp *m@ = pointer to a multiprecision integer
- *
- * Returns:    ---
- *
- * Use:                Marks the integer as `burn-after-use'.  When the integer's
- *             memory is deallocated, it is deleted so that traces can't
- *             remain in the swap file.  In theory.
- */
-
-void mp_burn(mp *m)
-{
-  m->f |= MP_BURN;
-}
-
 /*----- Basic manipulation ------------------------------------------------*/
 
 /* --- @mp_shrink@ --- *
@@ -106,4 +80,17 @@ void mp_minimize(mp *m)
 
 void mp_scan(mpscan *sc, const mp *m) { MP_SCAN(sc, m); }
 
+/* --- @mp_scan@ --- *
+ *
+ * Arguments:  @mpscan *sc@ = pointer to bitscanner block
+ *             @const mp *m@ = pointer to a multiprecision integer
+ *
+ * Returns:    ---
+ *
+ * Use:                Initializes a reverse bitscanner on a multiprecision
+ *             integer.
+ */
+
+void mp_rscan(mpscan *sc, const mp *m) { MP_RSCAN(sc, m); }
+
 /*----- That's all, folks -------------------------------------------------*/