~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progs/perftest.c: Use from Glibc syscall numbers.
[catacomb]
/
math
/
mpbarrett-exp.c
diff --git
a/math/mpbarrett-exp.c
b/math/mpbarrett-exp.c
index
44cad7e
..
27b74da
100644
(file)
--- a/
math/mpbarrett-exp.c
+++ b/
math/mpbarrett-exp.c
@@
-35,7
+35,7
@@
/* --- @mpbarrett_exp@ --- *
*
/* --- @mpbarrett_exp@ --- *
*
- * Arguments: @mpbarrett *mb@ = pointer to Barrett reduction context
+ * Arguments: @
const
mpbarrett *mb@ = pointer to Barrett reduction context
* @mp *d@ = fake destination
* @mp *a@ = base
* @mp *e@ = exponent
* @mp *d@ = fake destination
* @mp *a@ = base
* @mp *e@ = exponent
@@
-43,7
+43,7
@@
* Returns: Result, %$a^e \bmod m$%.
*/
* Returns: Result, %$a^e \bmod m$%.
*/
-mp *mpbarrett_exp(mpbarrett *mb, mp *d, mp *a, mp *e)
+mp *mpbarrett_exp(
const
mpbarrett *mb, mp *d, mp *a, mp *e)
{
mp *x = MP_ONE;
mp *spare = (e->f & MP_BURN) ? MP_NEWSEC : MP_NEW;
{
mp *x = MP_ONE;
mp *spare = (e->f & MP_BURN) ? MP_NEWSEC : MP_NEW;