ref: 20bac609b54d90d249232651e7ae99d08e8f524b
parent: d62c739879ea4c0661ca375717094e913f2c897e
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 */
--
⑨