final powerPC support modification

This commit is contained in:
kaleb-himes
2015-02-18 08:02:05 -07:00
parent de2115b140
commit 2a068ff025
2 changed files with 10 additions and 8 deletions

View File

@@ -3032,20 +3032,20 @@ static void GMULT(word64* X, word64* Y)
word64 y = Y[i];
for (j = 0; j < 64; j++)
{
if (y & 0x8000000000000000) {
if (y & 0x8000000000000000ULL) {
Z[0] ^= V[0];
Z[1] ^= V[1];
}
if (V[1] & 0x0000000000000001) {
V[1] >>= 1;
V[1] |= ((V[0] & 0x0000000000000001) ? 0x8000000000000000 : 0);
V[1] |= ((V[0] & 0x0000000000000001) ? 0x8000000000000000ULL : 0);
V[0] >>= 1;
V[0] ^= 0xE100000000000000;
V[0] ^= 0xE100000000000000ULL;
}
else {
V[1] >>= 1;
V[1] |= ((V[0] & 0x0000000000000001) ? 0x8000000000000000 : 0);
V[1] |= ((V[0] & 0x0000000000000001) ? 0x8000000000000000ULL : 0);
V[0] >>= 1;
}
y <<= 1;