summaryrefslogtreecommitdiff
path: root/libguile/numbers.c
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2000-03-12 17:00:58 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2000-03-12 17:00:58 +0000
commit413cb56ff4080de5676a2756b670bcdd81af3334 (patch)
tree2c0bbcce260b66b0ed2f43a0c939d48c472ab33c /libguile/numbers.c
parent244fdc2f4be27a42fa0a8ffb06a57b441ac9c690 (diff)
downloadguile-413cb56ff4080de5676a2756b670bcdd81af3334.tar.gz
* async.c, boolean.h, debug.c, dynl.c, dynwind.c, eval.c, eval.h,
feature.h, filesys.h, fluids.h, fports.c, fports.h, gc.c, gc.h, hash.c, keywords.h, macros.c, numbers.c, numbers.h, objects.c, objects.h, options.c, pairs.h, ports.c, ports.h, print.c, procs.h, ramap.c, read.c, smob.c, smob.h, srcprop.h, stacks.c, stacks.h, strports.c, struct.c, struct.h, tag.c, tags.h, throw.c, unif.c, unif.h, variable.h, vectors.h, weaks.c, weaks.h (SCM_SCM, SCM_BITS, SCM_CARBITS): Renamed from SCM_ASSCM, SCM_ASWORD, SCM_CARW).
Diffstat (limited to 'libguile/numbers.c')
-rw-r--r--libguile/numbers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/numbers.c b/libguile/numbers.c
index 06cefe12a..ed93fcc81 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -201,7 +201,7 @@ scm_quotient (SCM x, SCM y)
z = -z;
if (z < SCM_BIGRAD)
{
- SCM sw = scm_copybig (x, SCM_BIGSIGN (x) ? (SCM_ASWORD (y) > 0) : (SCM_ASWORD (y) < 0));
+ SCM sw = scm_copybig (x, SCM_BIGSIGN (x) ? (SCM_BITS (y) > 0) : (SCM_BITS (y) < 0));
scm_divbigdig (SCM_BDIGITS (sw), SCM_NUMDIGS (sw), (SCM_BIGDIG) z);
return scm_normbig (sw);
}
@@ -1079,7 +1079,7 @@ SCM_DEFINE (scm_ash, "ash", 2, 0, 0,
#define FUNC_NAME s_scm_ash
{
/* GJB:FIXME:: what is going on here? */
- SCM res = SCM_ASSCM (SCM_INUM (n));
+ SCM res = SCM_SCM (SCM_INUM (n));
SCM_VALIDATE_INUM (2,cnt);
#ifdef SCM_BIGDIG
if (cnt < 0)
@@ -1554,7 +1554,7 @@ scm_addbig (SCM_BIGDIG *x, scm_sizet nx, int xsgn, SCM bigy, int sgny)
{
num = 1;
i = 0;
- SCM_SETCAR (z, SCM_CARW (z) ^ 0x0100);
+ SCM_SETCAR (z, SCM_CARBITS (z) ^ 0x0100);
do
{
num += (SCM_BIGRAD - 1) - zds[i];
@@ -4207,7 +4207,7 @@ scm_divide (SCM x, SCM y)
SCM_BIGSIGN (x) ? (y > 0) : (y < 0), 3);
}
#endif
- return z ? SCM_ASSCM (z) : scm_makdbl (scm_big2dbl (x) / SCM_INUM (y), 0.0);
+ return z ? SCM_SCM (z) : scm_makdbl (scm_big2dbl (x) / SCM_INUM (y), 0.0);
}
SCM_ASRTGO (SCM_NIMP (y), bady);
if (SCM_BIGP (y))