EnzymeAD/Enzyme

Add support for soft float

Open

#567 建立於 2022年3月15日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)LLVM (165 fork)github user discovery
good first issue

倉庫指標

Star
 (1,613 star)
PR 合併指標
 (平均合併 3天 2小時) (30 天內合併 49 個 PR)

描述

https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html

Adding support for mul and div would be a good start.

Runtime Function: complex float __mulsc3 (float a, float b, float c, float d)
Runtime Function: complex double __muldc3 (double a, double b, double c, double d)
Runtime Function: complex long double __multc3 (long double a, long double b, long double c, long double d)
Runtime Function: complex long double __mulxc3 (long double a, long double b, long double c, long double d)
These functions return the product of a + ib and c + id, following the rules of C99 Annex G.

Runtime Function: complex float __divsc3 (float a, float b, float c, float d)
Runtime Function: complex double __divdc3 (double a, double b, double c, double d)
Runtime Function: complex long double __divtc3 (long double a, long double b, long double c, long double d)
Runtime Function: complex long double __divxc3 (long double a, long double b, long double c, long double d)
These functions return the quotient of a + ib and c + id (i.e., (a + ib) / (c + id)), following the rules of C99 Annex G.

貢獻者指南