From: Luke Kenneth Casson Leighton Date: Wed, 27 Sep 2023 19:13:16 +0000 (+0100) Subject: remove use of addc, use adde instead setting ca to zero. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=846714b7f4fb8be08c24580a3e82e18e1dad7be4;p=openpower-isa.git remove use of addc, use adde instead setting ca to zero. eliminates one more unnecessary instruction. --- 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