diff options
author | aiju <devnull@localhost> | 2016-08-28 16:05:22 +0200 |
---|---|---|
committer | aiju <devnull@localhost> | 2016-08-28 16:05:22 +0200 |
commit | b65f409d542e63302a68325f292a364a0b3bae2e (patch) | |
tree | cdf8946d9fcf4b2b1f42477afd0b22269fc6b6a4 /sys/include | |
parent | c3da573eb74440669c77b47dd955e007c90993fd (diff) |
mp.h: add mpasr
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/mp.h | 1 |
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 */ |