[Patch 2/4] [libgcc] Add double to half conversions.
James Greenhalgh
james.greenhalgh@arm.com
Mon Oct 24 13:45:00 GMT 2016
Hi,
Conversions from double precision floats to the ARM __fp16 are required
to round only once.
This patch adds a functions named __gnu_d2h_ieee and
__gnu_d2h_alternative for double to __fp16 conversions in IEEE and ARM
alternative format. The make use of the existing __gnu_float2h_internal
conversion function which rounds once only.
Bootstrapped on an ARMv8-A machine with no issues, and cross-tested with
a range of multilibs.
OK?
Thanks,
James
---
libgcc/
2016-10-24 James Greenhalgh <james.greenhalgh@arm.com>
Matthew Wahab <matthew.wahab@arm.com>
* config/arm/fp16.c (binary64): New.
(__gnu_d2h_internal): New.
(__gnu_d2h_ieee): New.
(__gnu_d2h_alternative): New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Patch-2-4-libgcc-Add-double-to-half-conversions.patch
Type: text/x-patch
Size: 1160 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161024/38491459/attachment.bin>
More information about the Gcc-patches
mailing list