More 64 bit compile fixes.
This commit is contained in:
@@ -16,7 +16,7 @@ template<> void ByteReverse(word64 *, const word64 *, unsigned int);
|
|||||||
|
|
||||||
void xorbuf(byte *buf, const byte *mask, unsigned int count)
|
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);
|
XorWords((word *)buf, (const word *)mask, count/WORD_SIZE);
|
||||||
else
|
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)
|
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);
|
XorWords((word *)output, (const word *)input, (const word *)mask, count/WORD_SIZE);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user