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

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Sat Apr 27 15:32:55 BST 2019


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

--- Comment #9 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Aleksandar Kostovic from comment #8)

> >for i in range(1, 20):
> >    print(sqrt(i))

> I see, it works, but only displays whole numbers.
> remeber its not a bug, its a feature ;)

 yehyeh! duUuuh, *now* it sinks in?? :)  you're the one that wanted
 to implement floating-point, ya muppet!
 https://www.youtube.com/watch?v=B7UmUX68KtE

 ... starts to make sense what jacob was saying about hardware
 not supporting 2 ** 0.5?

 just keep iterating and exploring, ok? not sure of something, simply
 write a small bit of code to check if it's true.

 the faster you can do that, the quicker you'll understand, and the
 quicker you can write the code.

 i regularly (like... 15 times a day) run python3 interactively just
 to do some exploring, not even write some code, just type directly
 at the prompt.


> Next up, trying to make it work as it should

awesome.

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


More information about the libre-riscv-dev mailing list