Skip to content

Commit 885cf0f

Browse files
Volodymyr PaprotskiSandhya Viswanathan
authored andcommitted
8353671: Remove dead code missed in JDK-8350459
Reviewed-by: sviswanathan, mullan
1 parent 1b6f694 commit 885cf0f

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/java.base/share/classes/sun/security/util/math/intpoly/MontgomeryIntegerPolynomialP256.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -547,27 +547,4 @@ protected void reduceIn(long[] limbs, long v, int i) {
547547
limbs[i - 5] += (v << 4) & LIMB_MASK;
548548
limbs[i - 4] += v >> 48;
549549
}
550-
551-
// Used when limbs a could overflow by one modulus.
552-
@ForceInline
553-
protected void reducePositive(long[] a) {
554-
long aa0 = a[0];
555-
long aa1 = a[1] + (aa0>>BITS_PER_LIMB);
556-
long aa2 = a[2] + (aa1>>BITS_PER_LIMB);
557-
long aa3 = a[3] + (aa2>>BITS_PER_LIMB);
558-
long aa4 = a[4] + (aa3>>BITS_PER_LIMB);
559-
560-
long c0 = a[0] - modulus[0];
561-
long c1 = a[1] - modulus[1] + (c0 >> BITS_PER_LIMB);
562-
long c2 = a[2] - modulus[2] + (c1 >> BITS_PER_LIMB);
563-
long c3 = a[3] - modulus[3] + (c2 >> BITS_PER_LIMB);
564-
long c4 = a[4] - modulus[4] + (c3 >> BITS_PER_LIMB);
565-
long mask = c4 >> BITS_PER_LIMB; // Signed shift!
566-
567-
a[0] = ((aa0 & mask) | (c0 & ~mask)) & LIMB_MASK;
568-
a[1] = ((aa1 & mask) | (c1 & ~mask)) & LIMB_MASK;
569-
a[2] = ((aa2 & mask) | (c2 & ~mask)) & LIMB_MASK;
570-
a[3] = ((aa3 & mask) | (c3 & ~mask)) & LIMB_MASK;
571-
a[4] = ((aa4 & mask) | (c4 & ~mask));
572-
}
573550
}

0 commit comments

Comments
 (0)