summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-11 20:17:59 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-11 20:17:59 -0800
commitdedf96f4bd008531e357c6141e3e8219b0ea7065 (patch)
tree893706b8d51c37cfac9cbcf03571d87c294d4a61 /lib.c
parent68fbc5322e282f41e2ee8c84cc16f6b6a4d39670 (diff)
downloadtxr-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.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib.c b/lib.c
index cd9d8edd..9432111d 100644
--- a/lib.c
+++ b/lib.c
@@ -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;