[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 17:48:57 BST 2019


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

--- Comment #22 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #20)
> (In reply to Aleksandar Kostovic from comment #18)
> > > great.  so... bye bye sqrt for now.  can always track that down later.
> > I think you misunderstood. Its the sqrtsimple function that is failing:

 whoops

> sqrtsimple fails because, by line 8, bit needs to be the smallest power of 4
> that is not less than num. 65536 fails because 1 << 14 is too small.

oh duh!

-     bit = 1 << 14
+     bit = 1 << 32

fixed.

> also, python doesn't let you wrap lines after a comma unless the comma is in
> one of () [] or {}.

i often use \ which i don't see many other people use.  so:

x = fred + joe + mary + \
    shawn_the_sheep

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


More information about the libre-riscv-dev mailing list