[PATCH v2 07/25] benchtests: Add atanhf benchmark

DJ Delorie dj@redhat.com
Sat Dec 7 00:47:54 GMT 2024


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> The input is based on acosf one (random inputs in [-1,1]).

LGTM
Reviewed-by: DJ Delorie <dj@redhat.com>

> diff --git a/benchtests/Makefile b/benchtests/Makefile
> index 29e287f220..8f5c55f19a 100644
> --- a/benchtests/Makefile
> +++ b/benchtests/Makefile
> @@ -37,6 +37,7 @@ bench-math := \
>    atan2f \
>    atanf \
>    atanh \
> +  atanhf \
>    cbrt \

Ok.

> diff --git a/benchtests/atanhf-inputs b/benchtests/atanhf-inputs
> new file mode 100644
> index 0000000000..1ce2ad9131
> --- /dev/null
> +++ b/benchtests/atanhf-inputs
> @@ -0,0 +1,2005 @@
> +## args: float
> +## ret: float
> +## includes: math.h
> +# Random inputs in the range [-1,1]
> +## name: workload-random

Ok.

> +-0x1.82ccfp-4
> +-0x1.d1ef54p-1
> +0x1.0a778p-6
> . . .
> +-0x1.6f76a4p-1
> +-0x1.3c58cp-1
> +0x1.d44c7p-2

Ok.



More information about the Libc-alpha mailing list