This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: [PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Jon Beniston <jon at beniston dot com>
- Cc: nd <nd at arm dot com>, "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Fri, 17 Aug 2018 13:34:37 +0000
- Subject: RE: [PATCH RFC] allow inline intrinsics for __ieee754_sqrt/f
Hi,
The best option is to let the compiler inline sqrt - it knows when it is feasible
and avoids having to add lots of target specific inline assembly code which is
hard to maintain.
In GLIBC I renamed all __ieee754_sqrt(f) uses to sqrt(f) and added -fno-math-errno
which allows compilers to inline sqrt on all targets. libm/common already uses
-fno-math-errno, but could be used in all of libm safely.
Wilco