fix compile in debug

This commit is contained in:
Glenn Maynard
2004-02-20 02:43:49 +00:00
parent d8ca7ddc90
commit 6d251fa7fd
-22
View File
@@ -860,28 +860,6 @@ unsigned short bignum_mod_short(Bignum number, unsigned short modulus)
return (unsigned short) r;
}
#ifdef DEBUG
void diagbn(char *prefix, Bignum md)
{
int i, nibbles, morenibbles;
static const char hex[] = "0123456789ABCDEF";
debug(("%s0x", prefix ? prefix : ""));
nibbles = (3 + bignum_bitcount(md)) / 4;
if (nibbles < 1)
nibbles = 1;
morenibbles = 4 * md[0] - nibbles;
for (i = 0; i < morenibbles; i++)
debug(("-"));
for (i = nibbles; i--;)
debug(("%c",
hex[(bignum_byte(md, i / 2) >> (4 * (i % 2))) & 0xF]));
if (prefix)
debug(("\n"));
}
#endif
/*
* Simple division.