]> git.ipfire.org Git - thirdparty/glibc.git/commit - soft-fp/eqhf2.c
soft-fp: Add __extendhfsf2/__extendhfdf2, __truncsfhf2/__truncdfhf2, __eqhf2/__nehf2
authorliuhongt <hongtao.liu@intel.com>
Wed, 7 Jul 2021 02:07:59 +0000 (10:07 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Jul 2021 15:01:32 +0000 (08:01 -0700)
commit6ec6c77867af4ddfec7323e0ac6ede89effca852
tree1797f50a472aa5c79e68342023f69b621505e9f8
parentb46cfcef3f7dab8e90729c6616ac1420f2642245
soft-fp: Add __extendhfsf2/__extendhfdf2, __truncsfhf2/__truncdfhf2, __eqhf2/__nehf2

1. Add __extendhfdf2/__extendhfsf2 to return an IEEE half converted to IEEE double/single.
2. Add __truncdfhf2/__extendsfhf2 to truncate IEEE double/single into IEEE half.
3. Add __eqhf2/__nehf2 to return 0 if a == b and a,b are not NAN, otherwise return 1.

These are needed by x86 _Float16:

https://software.intel.com/content/www/us/en/develop/download/intel-avx512-fp16-architecture-specification.html

support in GCC.
soft-fp/eqhf2.c [new file with mode: 0644]
soft-fp/extendhfdf2.c [new file with mode: 0644]
soft-fp/extendhfsf2.c [new file with mode: 0644]
soft-fp/half.h
soft-fp/truncdfhf2.c [new file with mode: 0644]
soft-fp/truncsfhf2.c [new file with mode: 0644]