summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-08-05 16:54:41 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-08-05 16:54:41 -0700
commit905a08374e2901e97b18e58d970f95a25ec6fc10 (patch)
tree5ec8498b29b05908c3d46da92d9f387cc7037350 /arith.h
parentd6ba8dd31733e6f3b455a8f746087b33066fef81 (diff)
downloadtxr-905a08374e2901e97b18e58d970f95a25ec6fc10.tar.gz
txr-905a08374e2901e97b18e58d970f95a25ec6fc10.tar.bz2
txr-905a08374e2901e97b18e58d970f95a25ec6fc10.zip
New functions digpow and digits.
* arith.c (digcommon): New static function. (digpow, digits): New functions. (arith_init): New digpow and digits intrinsic functions registered. * arith.h (digpow, digits): Declared. * txr.1: New functions documented.
Diffstat (limited to 'arith.h')
-rw-r--r--arith.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arith.h b/arith.h
index 1fa4e6c4..29e65706 100644
--- a/arith.h
+++ b/arith.h
@@ -45,6 +45,9 @@ val tofloatz(val obj);
val tointz(val obj, val base);
val width(val num);
val bits(val obj);
+val digpow(val n, val base);
+val digits(val n, val base);
+
noreturn void do_mp_error(val self, mp_err code);
void arith_init(void);
void arith_free_all(void);