[libre-riscv-dev] [Bug 74] preliminary exploratory software emulation of FP SQRT

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Sun Apr 28 16:36:20 BST 2019


http://bugs.libre-riscv.org/show_bug.cgi?id=74

--- Comment #19 from Aleksandar Kostovic <alexandar.kostovic at gmail.com> ---
>def main(mantissa, exponent):
>    if exponent & 1 != 0:
>        return sqrt(mantissa << 1), # shift mantissa up
>                ((exponent - 1) / 2) # subtract 1 from exp to compensate
>    return sqrt(mantissa),      # mantissa as-is
>           (exponent / 2)       # no compensating needed on exp

    ((exponent - 1) / 2) # subtract 1 from exp to compensate
    ^
IndentationError: unexpected indent

now i get indenattion error which i dont know how to resolve. added and removed
bothh spaces and tabs but nothing works...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list