From: Luke Kenneth Casson Leighton Date: Thu, 19 Aug 2021 16:52:20 +0000 (+0100) Subject: whitespace, below 80 char limit X-Git-Tag: xlen-bcd~116 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30fc19d8bfad7b2e000ca4aaae5498ecedf84644;p=openpower-isa.git whitespace, below 80 char limit --- 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]