]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/mp
fix bugs and cleanup cryptsetup code
[plan9front.git] / sys / man / 2 / mp
index 5223c8a10151a14e384565dba8a25f94c7be93b2..678f0eb7fd883c5b7c1a41076eaada712a5f7bd6 100644 (file)
@@ -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