[PATCH] RISC-V: Support long double math
Corinna Vinschen
vinschen@redhat.com
Mon Dec 4 09:37:18 GMT 2023
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
More information about the Newlib
mailing list