[libre-riscv-dev] IEEE754 FVCT
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Sat Jul 6 12:25:38 BST 2019
On Wed, Jul 3, 2019 at 4:00 PM Luke Kenneth Casson Leighton
<lkcl at lkcl.net> wrote:
> am just putting together the beginnings of FCVT, based on jon dawson's
> fpu code. the algorithm seems to be real easy, the special cases are
> the tricky bit, identifying when a number is in range (INF) etc. with
> the de-normalisation already done as a module, i shouuuld have
> something to test by tomorrow.
after quite a lot of semi-random iterative development i've got an
fcvt for high-to-low FP bitwidths. it's currently munching through
40,000 random numbers. if i can put up with the noise from the fan on
the aorus x3v6 i'll do a longer run later, then move on to 64-to-16
and 64-to-32.
those will need the unit test (test_xxx.py) infrastructure back as
they very deliberately create NaNs, INFs, and so on.
l.
More information about the libre-riscv-dev
mailing list