This is an archive of the discontinued LLVM Phabricator instance.

[libc][math] Implement asinhf function correctly rounded for all rounding modes.
ClosedPublic

Authored by lntue on Jan 26 2023, 5:42 PM.

Details

Diff Detail

Event Timeline

lntue created this revision.Jan 26 2023, 5:42 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 26 2023, 5:42 PM
lntue requested review of this revision.Jan 26 2023, 5:42 PM
zimmermann6 accepted this revision.Jan 27 2023, 1:28 AM

I confirm all exhaustive tests do pass, and the timings are similar to CORE-MATH:

zimmerma@biscotte:~/svn/core-math$ LIBM=/localdisk/zimmerma/llvm-project/build/projects/libc/lib/libllvmlibc.a ./perf.sh asinhf
GNU libc version: 2.36
GNU libc release: stable
[####################] 100 %
Ntrial = 20 ; Min = 24.687 + 0.365 clc/call; Median-Min = 0.296 clc/call; Max = 26.051 clc/call;
[####################] 100 %
Ntrial = 20 ; Min = 37.687 + 0.295 clc/call; Median-Min = 0.287 clc/call; Max = 39.359 clc/call;
[####################] 100 %
Ntrial = 20 ; Min = 25.939 + 0.320 clc/call; Median-Min = 0.292 clc/call; Max = 26.596 clc/call;
This revision is now accepted and ready to land.Jan 27 2023, 1:28 AM