soft-fp: Add fixhf[uns][di|si] and float[uns][di|si]hf

System Internals / glibc - Kito Cheng [sifive.com] - 8 August 2022 14:28 UTC

Add more IEEE half conversion routines:

- Convert 32-bit/64-bit integer to IEEE half.
- Convert IEEE half to 32-bit/64-bit integer.

They are required by RISC-V _Float16 support, tested with RISC-V GCC.

8bc3f94a06 soft-fp: Add fixhf[uns][di|si] and float[uns][di|si]hf
soft-fp/fixhfdi.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/fixhfsi.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/fixunshfdi.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/fixunshfsi.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/floatdihf.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/floatsihf.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/floatundihf.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
soft-fp/floatunsihf.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
8 files changed, 360 insertions(+)

Upstream: sourceware.org


  • Share