diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-27 21:03:39 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-27 21:03:39 -0400 |
commit | 4af8886a4bb8963b15af3b3828d33152281bf9a3 (patch) | |
tree | 74c08d05c2ad6928031e918bc4e643d473b4bc0d /big.c | |
parent | 4fc923247e286f73ff873f5562a1d30f0316348f (diff) |
remove unused functions normalise(), wff(), and norm1()
Diffstat (limited to 'big.c')
-rw-r--r-- | big.c | 51 |
1 files changed, 0 insertions, 51 deletions
@@ -991,55 +991,4 @@ word bigtostr8(word x) return r; } -#ifdef DEBUG -/* check for well-formation of integer */ -wff(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); -} - -/* remove trailing zeros */ -normalise(word x) -{ - if (rest(x)) { - rest(x) = norm1(rest(x)); - } - - return wff(x); -} - -norm1(word x) -{ - if (rest(x)) { - rest(x) = norm1(rest(x)); - } - - return (!digit(x) && !rest(x) ? 0 : x); -} - -#endif - /* END OF MIRANDA INTEGER PACKAGE */ |