summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2016-08-29 09:57:15 +0200
committeraiju <devnull@localhost>2016-08-29 09:57:15 +0200
commite95082f66c099184afd273d7fc0a30fd2c5e0ba8 (patch)
treedb18fc19118fbb7a34f7dfce3dc5a4f940bdc030 /sys/man
parenta08bf6831f5122fc9bfc6dccf77096f6ac2e4d03 (diff)
pc: add gcd, rand and minv; set base of logical operation results to 0
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/1/pc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/man/1/pc b/sys/man/1/pc
index a63ff3ea5..d7bbeee14 100644
--- a/sys/man/1/pc
+++ b/sys/man/1/pc
@@ -89,6 +89,15 @@ The minimum number of bits required to represent \fIn\fR as an unsigned number.
.TP
.I sbits(n)
The minimum number of bits required to represent \fIn\fR as an signed number.
+.TP
+.I gcd(n,m)
+The greatest common divisor of \fIn\fR and \fIm\fR.
+.TP
+.I minv(n,m)
+The inverse of \fIn\fR mod \fIm\fR.
+.TP
+.I rand(n)
+A random number satisfying 0 ≤ \fIrand(n)\fR < \fIn\fR.
.SS Control statements
.PP
Control statements are always evaluated with default input base 10.