On Mon, Mar 23, 2020 at 12:41 PM Eshan Dhawan <[email protected]>
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
> [email protected]
> http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to