diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-12-11 20:17:59 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-12-11 20:17:59 -0800 |
commit | dedf96f4bd008531e357c6141e3e8219b0ea7065 (patch) | |
tree | 893706b8d51c37cfac9cbcf03571d87c294d4a61 /lib.c | |
parent | 68fbc5322e282f41e2ee8c84cc16f6b6a4d39670 (diff) | |
download | txr-dedf96f4bd008531e357c6141e3e8219b0ea7065.tar.gz txr-dedf96f4bd008531e357c6141e3e8219b0ea7065.tar.bz2 txr-dedf96f4bd008531e357c6141e3e8219b0ea7065.zip |
* arith.c (trunc): Error messages prefixed with trunc:.
(mod): New function, reimplementation of removed mod from lib.c.
* lib.c (mod): Function removed.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -857,19 +857,6 @@ val mulv(val nlist) return reduce_left(func_n2(mul), cdr(nlist), car(nlist), nil); } -val mod(val anum, val bnum) -{ - cnum a = c_num(anum); - cnum b = c_num(bnum); - - numeric_assert (b != 0); - - { - cnum result = a % b; - return num(result); - } -} - val zerop(val num) { return c_num(num) == 0 ? t : nil; |