summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/truncdfhf2.c
Commit message (Collapse)AuthorAgeFilesLines
* Add ARM RTABI aliases for half-precision conversionsOliver Stannard2015-10-071-0/+2
| | | | | | | The ARM RTABI defines these functions as __aeabi_h2f, __aeabi_f2h and __aeabi_d2h, so we need aliases for them. llvm-svn: 249559
* [Builtins] Implement half-precision conversions.Ahmed Bougacha2015-05-121-0/+16
Mostly uninteresting, except: - in __extendXfYf2, when checking if the number is normal, the old code relied on the unsignedness of src_rep_t, which is a problem when sizeof(src_rep_t) < sizeof(int): the result gets promoted to int, the signedness of which breaks the comparison. I added an explicit cast; it shouldn't affect other types. - we can't pass __fp16, so src_t and src_rep_t are the same. - the gnu_*_ieee symbols are simply duplicated definitions, as aliases are problematic on mach-o (where only weak aliases are supported; that's not what we want). Differential Revision: http://reviews.llvm.org/D9693 llvm-svn: 237161
OpenPOWER on IntegriCloud