--- a/hotspot/src/cpu/x86/vm/stubRoutines_x86.cpp Mon Nov 09 11:35:45 2015 +0000
+++ b/hotspot/src/cpu/x86/vm/stubRoutines_x86.cpp Mon Oct 26 16:21:37 2015 +0100
@@ -147,7 +147,7 @@
b_pow_x_table[0] = b;
for (int k = 0; k < D; ++k) {
// If "a" has non-zero coefficient at x**k,/ add ((b * x**k) mod P) to the result.
- if ((a & (uint64_t)(1 << (D - 1 - k))) != 0) product ^= b_pow_x_table[k];
+ if ((a & (((uint32_t)1) << (D - 1 - k))) != 0) product ^= b_pow_x_table[k];
// Compute b_pow_x_table[k+1] = (b ** x**(k+1)) mod P.
if (b_pow_x_table[k] & 1) {