X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/698bd937e9f4e5e32d536757fc0631bc8e7b9d85..22bab86c9df047bdd258283c6567821319ba7a6f:/mpx.h diff --git a/mpx.h b/mpx.h index 076f14a..cb49bd4 100644 --- a/mpx.h +++ b/mpx.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mpx.h,v 1.9 1999/12/22 15:49:07 mdw Exp $ + * $Id: mpx.h,v 1.10 2000/10/08 12:06:12 mdw Exp $ * * Low level multiprecision arithmetic * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: mpx.h,v $ + * Revision 1.10 2000/10/08 12:06:12 mdw + * Provide @mpx_ueq@ for rapidly testing equality of two integers. + * * Revision 1.9 1999/12/22 15:49:07 mdw * New function for division by a small integer. * @@ -313,6 +316,19 @@ extern void mpx_lsr(mpw */*dv*/, mpw */*dvl*/, extern void mpx_2c(mpw */*dv*/, mpw */*dvl*/, const mpw */*v*/, const mpw */*vl*/); +/* --- @mpx_ueq@ --- * + * + * Arguments: @const mpw *av, *avl@ = first argument vector base and limit + * @const mpw *bv, *bvl@ = second argument vector base and limit + * + * Returns: Nonzero if the two vectors are equal. + * + * Use: Performs an unsigned integer test for equality. + */ + +extern int mpx_ueq(const mpw */*av*/, const mpw */*avl*/, + const mpw */*bv*/, const mpw */*bvl*/); + /* --- @mpx_ucmp@ --- * * * Arguments: @const mpw *av, *avl@ = first argument vector base and limit