More 64 bit compile fixes.

This commit is contained in:
Steve Checkoway
2005-06-23 04:51:12 +00:00
parent 79549f20ba
commit 0d200bc461
+2 -2
View File
@@ -16,7 +16,7 @@ template<> void ByteReverse(word64 *, const word64 *, unsigned int);
void xorbuf(byte *buf, const byte *mask, unsigned int count)
{
if (((unsigned int)buf | (unsigned int)mask | count) % WORD_SIZE == 0)
if (((uintptr_t)buf | (uintptr_t)mask | count) % WORD_SIZE == 0)
XorWords((word *)buf, (const word *)mask, count/WORD_SIZE);
else
{
@@ -27,7 +27,7 @@ void xorbuf(byte *buf, const byte *mask, unsigned int count)
void xorbuf(byte *output, const byte *input, const byte *mask, unsigned int count)
{
if (((unsigned int)output | (unsigned int)input | (unsigned int)mask | count) % WORD_SIZE == 0)
if (((uintptr_t)output | (uintptr_t)input | (uintptr_t)mask | count) % WORD_SIZE == 0)
XorWords((word *)output, (const word *)input, (const word *)mask, count/WORD_SIZE);
else
{