[PATCH v2 08/25] benchtests: Add coshf benchmark

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


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> Random inputs in the range [-10,10].

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

> diff --git a/benchtests/Makefile b/benchtests/Makefile
> index 8f5c55f19a..648d6f9d46 100644
> --- a/benchtests/Makefile
> +++ b/benchtests/Makefile
> @@ -45,6 +45,7 @@ bench-math := \
>    cos \
>    cosf \
>    cosh \
> +  coshf \
>    erf \

Ok.

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

Ok.

> +-0x1.45bb82p+2
> +-0x1.4c645p+1
> +-0x1.d1fcacp+2
> . . .
> +0x1.6d056p+2
> +0x1.d22de8p+2
> +0x1.ed8ebp+2

Ok.



More information about the Libc-alpha mailing list