summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2016-08-28 16:05:22 +0200
committeraiju <devnull@localhost>2016-08-28 16:05:22 +0200
commitb65f409d542e63302a68325f292a364a0b3bae2e (patch)
treecdf8946d9fcf4b2b1f42477afd0b22269fc6b6a4 /sys/include
parentc3da573eb74440669c77b47dd955e007c90993fd (diff)
mp.h: add mpasr
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/mp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/mp.h b/sys/include/mp.h
index f883712de..9aa8a4715 100644
--- a/sys/include/mp.h
+++ b/sys/include/mp.h
@@ -84,6 +84,7 @@ void mpnot(mpint *b, mpint *res);
void mpxor(mpint *b1, mpint *b2, mpint *res);
void mptrunc(mpint *b, int n, mpint *res);
void mpxtend(mpint *b, int n, mpint *res);
+void mpasr(mpint *b, int shift, mpint *res);
/* modular arithmetic, time invariant when 0≤b1≤m-1 and 0≤b2≤m-1 */
void mpmodadd(mpint *b1, mpint *b2, mpint *m, mpint *sum); /* sum = b1+b2 % m */