diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-28 13:43:54 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-28 13:43:54 -0400 |
commit | fe7cdece38c588a4481a24e67a89fda07cd2e53a (patch) | |
tree | 215ca5a720b27a2197b0705457d1ccd7ac1ac0b1 | |
parent | 60afac703ba92a8af865d951d5c1d63e7d4c3171 (diff) |
remove unused functions
-rw-r--r-- | big.c | 50 |
1 files changed, 0 insertions, 50 deletions
@@ -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 */ |