From b1f273a1a137dddf88d986a95df3b456f7f2e927 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Sep 2023 20:13:16 +0100 Subject: [PATCH] remove use of addc, use adde instead setting ca to zero. eliminates one more unnecessary instruction. --- src/openpower/test/bigint/powmod.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openpower/test/bigint/powmod.py b/src/openpower/test/bigint/powmod.py index 7e17cc9a..8eafa059 100644 --- a/src/openpower/test/bigint/powmod.py +++ b/src/openpower/test/bigint/powmod.py @@ -101,9 +101,9 @@ def python_mul_algorithm2(a, b): t[4] = 0 for i in range(4): t[i], t[4] = maddedu(a[iy], b[i], t[4]) - y[iy], ca = addc(y[iy], t[0]) - for i in range(4): - y[1 + iy + i], ca = adde(y[1 + iy + i], t[1 + i], ca) + ca = 0 + for i in range(5): + y[iy + i], ca = adde(y[iy + i], t[i], ca) return y -- 2.30.2