From 30fc19d8bfad7b2e000ca4aaae5498ecedf84644 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 19 Aug 2021 17:52:20 +0100 Subject: [PATCH] whitespace, below 80 char limit --- src/openpower/decoder/isa/test_caller_bcd.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/openpower/decoder/isa/test_caller_bcd.py b/src/openpower/decoder/isa/test_caller_bcd.py index d1a0ee3f..d831e11a 100644 --- a/src/openpower/decoder/isa/test_caller_bcd.py +++ b/src/openpower/decoder/isa/test_caller_bcd.py @@ -336,13 +336,15 @@ class BCDTestCase(FHDLTestCase): carry = [0] * 64 (sum[0], carry[0]) = half_adder(a[0], b[0]) for bit in range(1, 64, 1): - (sum[bit], carry[bit]) = full_adder(a[bit], b[bit], carry[bit - 1]) + (sum[bit], carry[bit]) = full_adder(a[bit], b[bit], + carry[bit - 1]) return (sum + [carry[63]]) def addg6s(a, b): BIT = lambda value, bit: int(bool((value >> bit) & 1)) - a = list(reversed(list(map(lambda bit: BIT(a, bit), range(63, -1, -1))))) - b = list(reversed(list(map(lambda bit: BIT(b, bit), range(63, -1, -1))))) + r64 = range(63, -1, -1) + a = list(reversed(list(map(lambda bit: BIT(a, bit), r64)))) + b = list(reversed(list(map(lambda bit: BIT(b, bit), r64)))) sum = full_adder64(a, b) a_in = lambda bit: a[bit] -- 2.30.2