fenv implementation for POWERPC

Joel Sherrill joel at rtems.org
Mon Mar 23 18:52:02 UTC 2020


On Mon, Mar 23, 2020 at 12:41 PM Eshan Dhawan <eshandhawan51 at gmail.com>
wrote:

> hello everyone,
> For porting fenv.h to POWERPC I went to FreeBSD and NetBSD They both have
> the same implementation.
> But musl has a different implementation following the same structure as in
> previous implementations.
> Which would be better??
>

I like the FreeBSD implementation. It will be easier to integrate. If newlib
wants the methods to have real bodies (e.g. not inline methods), it will be
easy to convert to one method per file.

But I would merge it unmodified as much as possible.

>
> FreeBSD: https://github.com/freebsd/freebsd/tree/master/lib/msun/powerpc
> NetBSD:-
> -> fenv.c :
> https://github.com/NetBSD/src/blob/trunk/lib/libm/arch/powerpc/fenv.c
> ->fenv.h :
> https://github.com/NetBSD/src/blob/trunk/sys/arch/powerpc/include/fenv.h
> musl: https://git.musl-libc.org/cgit/musl/tree/src/fenv/powerpc64
>
> thanks
> eshan
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200323/ea7d56d5/attachment.html>


More information about the devel mailing list