Re: [PATCH] RISC-V: Support long double math

Kito Cheng <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CA+yXCZAMEhHLG0WGr625o3kGfBdD5VEoeSx_tspYobP27bGJFw@mail.gmail.com>
Hi Corinna:

Thanks for reminding me, I didn't notice that since I just grabbed
from aarch64...:P [1]

Will check with upstream FreeBSD later :)

[1] https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/machine/aarch64/machine/_fpmath.h;h=fa62ae81cf19bf5b33637c6114f84f9910d17474;hb=HEAD


On Mon, Dec 4, 2023 at 5:37 PM Corinna Vinschen <[email protected]> wrote:
>
> Hi Kito,
>
> thanks, both patches pushed.
>
> I just wonder...
>
> On Dec  4 15:41, Kito Cheng wrote:
> > diff --git a/newlib/libc/machine/riscv/machine/_fpmath.h b/newlib/libc/machine/riscv/machine/_fpmath.h
> > new file mode 100644
> > index 000000000..fa62ae81c
> > --- /dev/null
> > +++ b/newlib/libc/machine/riscv/machine/_fpmath.h
> > @@ -0,0 +1,64 @@
> > [...]
> > +union IEEEl2bits {
> > +     long double     e;
> > +     struct {
> > +             uint64_t        manl    :64;
> > +             uint64_t        manh    :48;
> > +             uint32_t        exp     :15;
> > +             uint32_t        sign    :1;
> > +     } bits;
> > +     /* TODO andrew: Check the packing here */
>
> ...if Andrew already checked the packaging, after he pushed this
> to the FreeBSD repo in 2015 :)))
>
>
> Thanks,
> Corinna
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.