X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/21a7c4b1cffbf33a19e4cf421e29420187ed7a89..2e8eb64a72472bea4faba1cee5edde4fe3616808:/mpbarrett.h diff --git a/mpbarrett.h b/mpbarrett.h index d9c02ad..aa1971e 100644 --- a/mpbarrett.h +++ b/mpbarrett.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mpbarrett.h,v 1.1 1999/12/10 23:22:00 mdw Exp $ + * $Id: mpbarrett.h,v 1.2 2000/10/08 12:03:44 mdw Exp $ * * Barrett modular reduction * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: mpbarrett.h,v $ + * Revision 1.2 2000/10/08 12:03:44 mdw + * (mpbarrett_reduce): Cope with negative numbers. + * * Revision 1.1 1999/12/10 23:22:00 mdw * Barrett reduction support: works with even moduli. * @@ -109,8 +112,7 @@ extern void mpbarrett_destroy(mpbarrett */*mb*/); * Returns: The residue of @m@ modulo the number in the reduction * context. * - * Use: Performs an efficient modular reduction. The argument is - * assumed to be positive. + * Use: Performs an efficient modular reduction. */ extern mp *mpbarrett_reduce(mpbarrett */*mb*/, mp */*d*/, mp */*m*/);