]> git.ipfire.org Git - thirdparty/glibc.git/commit
benchtests: Add acosf function to bench-math
authorSunil K Pandey <skpgkp2@gmail.com>
Wed, 27 Oct 2021 20:50:16 +0000 (13:50 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Fri, 29 Oct 2021 15:52:30 +0000 (08:52 -0700)
commit79d0fc65395716c1d95931064c7bf37852203c66
treed52735fa37fdf968f71ae1589dadf1502cbdeef2
parentf392915d1e9aa74a3255ab5afc091a86373aa3d2
benchtests: Add acosf function to bench-math

Add acosf function to bench-math and copy acosf-inputs to benchtests.
Motivation for this patch is to prepare for upcoming libmvec new
functions.  Float and double version of libmvec functions stays
together.

acosf-inputs file generated from acos-inputs file using following
scaling formula:

f = d * (FLT_MAX/DBL_MAX)

Where d is input(double) and f is output(float).  If scaled float value
is duplicate in new input file, nextafterf() function used to find next
float value, ensuring no duplicates.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
benchtests/Makefile
benchtests/acosf-inputs [new file with mode: 0644]