[libre-riscv-dev] IEEE754 FPU

Aleksandar Kostovic alexandar.kostovic at gmail.com
Thu Feb 14 15:38:13 GMT 2019


No need, comments are good and I understand it. I am happy with the code as
it is very clear and straightforward :)

On Thu, Feb 14, 2019 at 4:29 PM Luke Kenneth Casson Leighton <lkcl at lkcl.net>
wrote:

> okaaay, so time to take a look and see what the heck is going on.
>
> you'll see i split out "pack" into a "corrections" and "pack" phase,
> the reason for doing that is that i didn't like that the z output was
> assigned *and* then corrected (Inf or -0 turned to +0), so what i did
> was:
>
> * split those out into a separate phase that alters the z.e (exponent)
> and z.s (sign) contents.. *then*
> * goes through to the "pack" phase which now does *not* alter the z
> output with post-analysis, it *just* says "if overflow, set z=INF else
> set z from s/exp/mant"
>
> it's sort-of all making sense, if you focus on each state in turn.
> aleksander, are there any bits that aren't clear, because that means
> they need to be commented / reviewed.
>
> l.
>
> _______________________________________________
> libre-riscv-dev mailing list
> libre-riscv-dev at lists.libre-riscv.org
> http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
>


More information about the libre-riscv-dev mailing list