summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-13 20:00:49 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-13 20:00:49 -0800
commit901f7e6c7588b86cbd63172a4871be22bb024b6d (patch)
tree05ed4b47f6a035d1ceab458fefc3bfc4724c73e8 /lib.h
parent64b06932ed7d8dd8c904e66a70a53ae4c8ec4448 (diff)
downloadtxr-901f7e6c7588b86cbd63172a4871be22bb024b6d.tar.gz
txr-901f7e6c7588b86cbd63172a4871be22bb024b6d.tar.bz2
txr-901f7e6c7588b86cbd63172a4871be22bb024b6d.zip
* arith.c (exptmod, gcd): New functions.
* eval.c (eval_init): New functions registered as intrisics. * lib.h (exptmod, gcd): Declared. * txr.1: Documentation stubs added.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index e206184e..a3d6019d 100644
--- a/lib.h
+++ b/lib.h
@@ -391,7 +391,9 @@ val maxv(val first, val rest);
val minv(val first, val rest);
val expt(val base, val exp);
val exptv(val nlist);
+val exptmod(val base, val exp, val mod);
val isqrt(val anum);
+val gcd(val anum, val bnum);
val string_own(wchar_t *str);
val string(const wchar_t *str);
val string_utf8(const char *str);