summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/fp_trunc.h
Commit message (Collapse)AuthorAgeFilesLines
* builtins: spell inline as __inlineSaleem Abdulrasool2015-10-101-2/+2
| | | | | | | | | __inline is a vendor specific spelling for inline. clang and gcc treat it the same as inline, and is available in MSVC 2013 which does not implement C99 (VS2015 supports the inline keyword though). This will allow us to build the builtins using MSVC. llvm-svn: 249953
* [Builtins] Implement half-precision conversions.Ahmed Bougacha2015-05-121-1/+13
| | | | | | | | | | | | | | | | | 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
* Refactor truncdfsf2.Joerg Sonnenberger2014-05-291-0/+64
Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3888 llvm-svn: 209779
OpenPOWER on IntegriCloud