summaryrefslogtreecommitdiff
path: root/big.c
diff options
context:
space:
mode:
Diffstat (limited to 'big.c')
-rw-r--r--big.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/big.c b/big.c
index 7b58a2f..1b276e2 100644
--- a/big.c
+++ b/big.c
@@ -786,53 +786,3 @@ word x;
r = cons('-', r);
return (r);
}
-
-#ifdef DEBUG
-wff(x) /* check for well-formation of integer */
-word x;
-{
- word y = x;
- if (tag[x] != INT)
- printf("BAD TAG %d\n", tag[x]);
- if (big_is_negative(x) && !digit0(x) && !rest(x))
- printf("NEGATIVE ZERO!\n");
- if (digit0(x) & (~MAXDIGIT))
- printf("OVERSIZED DIGIT!\n");
- while (x = rest(x))
- if (tag[x] != INT)
- printf("BAD INTERNAL TAG %d\n", tag[x]);
- else if (digit(x) & (~MAXDIGIT))
- printf("OVERSIZED DIGIT!\n");
- else if (!digit(x) && !rest(x))
- printf("TRAILING ZERO!\n");
- return (y);
-}
-
-normalise(x) /* remove trailing zeros */
-word x;
-{
- if (rest(x))
- rest(x) = norm1(rest(x));
- return (wff(x));
-}
-
-norm1(x)
-word x;
-{
- if (rest(x))
- rest(x) = norm1(rest(x));
- return (!digit(x) && !rest(x) ? 0 : x);
-}
-
-#endif
-
-/* stall(s)
-char *s;
-{ fprintf(stderr,"big integer %s not yet implemented\n",s);
- exit(0);
-}
-
-#define destrev(x,y,z) while(x)z=x,x=rest(x),rest(z)=y,y=z;
-/* destructively reverse x into y using z as temp */
-
-/* END OF MIRANDA INTEGER PACKAGE */