llvm / llvm/llvm-project

[libc][math] Add float-only versions for `inv_trigf_utils.h`

Open
#202,079 1 comment 0 reactions 0 assignees View on GitHub
libc
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Currently, the inverse trig utility functions in `libc/src/__support/math/inv_trigf_utils.h` perform all intermediate computations in double precision. This is inefficient for float16 and bfloat16 math functions.

We should provide float-only versions for `inv_trigf_utils.h` so that float16 and bfloat16 functions can use them efficiently.
This is a tracking-issue for the same

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.