[all-commits] [llvm/llvm-project] 94a8ca: [libc][math] Optimize `asinpif` and `acospif` usin...
Mohamed Emad via All-commits
all-commits at lists.llvm.org
Thu Mar 5 14:18:21 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 94a8ca187067de1e232df353936183ca3f6dff7c
https://github.com/llvm/llvm-project/commit/94a8ca187067de1e232df353936183ca3f6dff7c
Author: Mohamed Emad <hulxxv at gmail.com>
Date: 2026-03-06 (Fri, 06 Mar 2026)
Changed paths:
M libc/src/__support/math/asinpif.h
M libc/src/__support/math/inv_trigf_utils.h
Log Message:
-----------
[libc][math] Optimize `asinpif` and `acospif` using estrin's scheme (#184286)
Optimize `asinpif` and `acospif` using [Estrin's
scheme](https://en.wikipedia.org/wiki/Estrin%27s_scheme).
## Benchmarking in **debug mode**
### **before**
**asinpif**
```
Ntrial = 40 ; Min = 0.000 + 350.920 clc/call; Median-Min = 450.477 clc/call; Max = 468.882 clc/call;
```
**acospif**
```
Ntrial = 40 ; Min = 0.000 + 309.248 clc/call; Median-Min = 384.386 clc/call; Max = 420.073 clc/call;
```
### **after**
**asinpif**
```
Ntrial = 40 ; Min = 0.000 + 258.178 clc/call; Median-Min = 318.840 clc/call; Max = 326.965 clc/call;
```
**acospif**
```
Ntrial = 40 ; Min = 0.000 + 217.385 clc/call; Median-Min = 260.928 clc/call; Max = 293.692 clc/call;
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list