llvm / llvm/llvm-project

[libc][math][c23] Improve FPU path for C23 math function rsqrtf16

Open
#204,673 1 comment 0 reactions 1 assignee Claimed by @amemov View on GitHub
c23 libc
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

In #160639 it was discovered that [FPU path had lower throughput](https://github.com/llvm/llvm-project/pull/160639#issuecomment-4637223439) than approximation path.

I would like to see how using approach described in https://github.com/llvm/llvm-project/blob/main/libc/src/__support/FPUtil/sqrt.h we can potential improve the throughput of that function, and later re-use that + approximation idea for the follow-up `rsqrt` PRs for higher-precision data types.

Please assign me to this issue, thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.