[PATCH] aarch64: Implement math acceleration via builtins

Szabolcs Nagy szabolcs.nagy@arm.com
Mon Oct 23 14:43:00 GMT 2017


On 20/10/17 21:16, Michael Collison wrote:
> Patch updated with upstream comments. ChangeLog updated as well.
> 
> Tested on aarch64-linux-gnu with gcc-5.4 and gcc-6. Okay for trunk?
> 
> 2017-10-20  Michael Collison  <michael.collison@arm.com>
...
>> 	* sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with
>> 	-fno-math-errno.

i managed to miss this new Makefile in the commit.

but then i saw that lround, llround, lroundf, llroundf builtins
fail to inline as single instruction without -fno-math-errno
(at least with the toolchain i tried), so i added those to
the makefile, committed as in the attached patch.

however this feels fragile, we probably have to add the
-fno-math-errno flag to all math functions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-aarch64-Add-missing-math-Makefile-for-recent-commit.patch
Type: text/x-patch
Size: 1428 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171023/454aabf9/attachment.bin>


More information about the Libc-alpha mailing list