projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New SHA variants with longer outputs.
[u/mdw/catacomb]
/
mpbarrett.h
diff --git
a/mpbarrett.h
b/mpbarrett.h
index
d9c02ad
..
aa1971e
100644
(file)
--- a/
mpbarrett.h
+++ b/
mpbarrett.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Barrett modular reduction
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mpbarrett.h,v $
/*----- 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.
*
* 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.
*
* 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*/);
*/
extern mp *mpbarrett_reduce(mpbarrett */*mb*/, mp */*d*/, mp */*m*/);