From: Luke Kenneth Casson Leighton Date: Mon, 18 Feb 2019 21:12:16 +0000 (+0000) Subject: missed indentation of if statements in special cases X-Git-Tag: ls180-24jan2020~1887 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a62c8c5881b2aa0054a0fa14eeae8723f92cb846;p=ieee754fpu.git missed indentation of if statements in special cases --- diff --git a/src/add/fmul.py b/src/add/fmul.py index 1e507a04..1b9f4618 100644 --- a/src/add/fmul.py +++ b/src/add/fmul.py @@ -55,17 +55,17 @@ class FPMUL(FPBase): with m.Elif(a.is_inf()): m.next = "put_z" m.d.sync += z.inf(0) - #if b is zero return NaN - with m.If(b.is_zero()): - m.d.sync += z.nan(1) + #if b is zero return NaN + with m.If(b.is_zero()): + m.d.sync += z.nan(1) #if b is inf return inf with m.Elif(b.is_inf()): m.next = "put_z" m.d.sync += z.inf(0) - #if a is zero return NaN - with m.If(a.is_zero()): - m.next = "put_z" - m.d.sync += z.nan(1) + #if a is zero return NaN + with m.If(a.is_zero()): + m.next = "put_z" + m.d.sync += z.nan(1) #if a is zero return zero with m.Elif(a.is_zero()): m.next = "put_z"