[libre-riscv-dev] div/mod algorithm written in python

Luke Kenneth Casson Leighton lkcl at lkcl.net
Mon Jul 22 03:26:17 BST 2019


On Mon, Jul 22, 2019 at 2:20 AM Luke Kenneth Casson Leighton
<lkcl at lkcl.net> wrote:
>
> On Sun, Jul 21, 2019 at 9:54 PM Jacob Lifshay <programmerjake at gmail.com> wrote:
> >
> > making the exponent even is needed for sqrt and rsqrt -- not for div.
>
> okaay, yes.

 hmm, hmm, i think i got it: it's not that the exponent is needed to
be even, it's that the mantissa needs to be an even number of bits.
does that make sense?

 it would mean that MSBHigh doesn't need to be adjusted: just the
number of extra bits to FPNumBase should be adjusted to accommodate an
even number of bits.

l.



More information about the libre-riscv-dev mailing list