summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2016-08-28 10:49:41 +0200
committeraiju <devnull@localhost>2016-08-28 10:49:41 +0200
commitcf2f2a884137b589f502ffc7af9de5ca78634356 (patch)
tree09ae722e5907b20b1ffa559fc45bbdd14125ac71 /sys/man
parent193daffafb2ca564a47e52489cb082d77fa78872 (diff)
mp: fix mpnot and add mpasr
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/2/mp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/man/2/mp b/sys/man/2/mp
index 5223c8a10..678f0eb7f 100644
--- a/sys/man/2/mp
+++ b/sys/man/2/mp
@@ -127,6 +127,9 @@ void mptrunc(mpint *b, int n, mpint *res)
void mpxtend(mpint *b, int n, mpint *res)
.PP
.B
+void mpasr(mpint *b, int n, mpint *res)
+.PP
+.B
void mpmul(mpint *b1, mpint *b2, mpint *prod)
.PP
.B
@@ -584,6 +587,12 @@ Logical operations (treating negative numbers using two's complement):
.I mpnot
.BR "res = ~b1" .
.TP
+.I mpasr
+.BR "res = b>>shift"
+(\fImpasr\fR, unlike
+.IR mpright ,
+uses two's complement).
+.TP
.I mptrunc
truncates
.I b