diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-08-05 16:54:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-08-05 16:54:41 -0700 |
commit | 905a08374e2901e97b18e58d970f95a25ec6fc10 (patch) | |
tree | 5ec8498b29b05908c3d46da92d9f387cc7037350 /arith.h | |
parent | d6ba8dd31733e6f3b455a8f746087b33066fef81 (diff) | |
download | txr-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |