ref: b65f409d542e63302a68325f292a364a0b3bae2e
parent: c3da573eb74440669c77b47dd955e007c90993fd
author: aiju <devnull@localhost>
date: Sun Aug 28 12:05:22 EDT 2016
mp.h: add mpasr
--- a/sys/include/mp.h
+++ b/sys/include/mp.h
@@ -84,6 +84,7 @@
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 */