<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 20, 2020 at 2:43 PM Eshan Dhawan <<a href="mailto:eshandhawan51@gmail.com">eshandhawan51@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>What would be the preferred source to port fenv.h to ARM and AARCH64 <br></div>its implementation is present in both FreeBSD as well AS NetBSD <br></div>-> ARM <br></div>---FreeBSD Source <br># <a href="https://github.com/freebsd/freebsd/tree/master/lib/msun/arm" style="text-decoration:none" id="gmail-m_4745620444899719269gmail-docs-internal-guid-da84d445-7fff-21ce-cc7a-4f349dac9a65" target="_blank"><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">https://github.com/freebsd/freebsd/tree/master/lib/msun/arm</span></a><br></div><div>---NetBSD Source <br></div><div># <a href="https://github.com/NetBSD/src/tree/trunk/lib/libm/arch/arm" target="_blank">https://github.com/NetBSD/src/tree/trunk/lib/libm/arch/arm</a></div><div><br></div><div>->AARCH64</div><div>---FreeBSD Source <br></div><div>#<a href="https://github.com/freebsd/freebsd/tree/master/lib/msun/aarch64" target="_blank"> https://github.com/freebsd/freebsd/tree/master/lib/msun/aarch64</a></div><div>---NetBSD Source <br></div><div># <a href="https://github.com/NetBSD/src/tree/trunk/lib/libm/arch/aarch64" target="_blank">https://github.com/NetBSD/src/tree/trunk/lib/libm/arch/aarch64<br></a></div></div></blockquote><div><br></div><div>Don't forget MUSL-C Library which has a lot of architectures and </div><div>is appropriately licensed.</div><div><br></div><div><a href="https://git.musl-libc.org/cgit/musl/tree/src/fenv">https://git.musl-libc.org/cgit/musl/tree/src/fenv</a></div><div><br></div><div>I think our the order is going to be FreeBSD, NetBSD, then other places.</div><div><br></div><div>The code drops into newlib's libm in a particular way which may require</div><div>some refactoring. fenv.h is shared across all ports and machine/fenv.h is</div><div>where port code goes. There must be an architecture specific file for each</div><div>method. But the entire implementation could go in one file and the others</div><div>be stubs. The i386 does this.</div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><a href="https://github.com/NetBSD/src/tree/trunk/lib/libm/arch/aarch64" target="_blank"><br><br></a></div><div><br></div><div>Thanks</div><div>-Eshan <br></div></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>