[PATCH v2 03/25] benchtests: Add asinf benchmark

DJ Delorie dj@redhat.com
Sat Dec 7 00:29:34 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 5d5c20780f..ba280a86a3 100644
> --- a/benchtests/Makefile
> +++ b/benchtests/Makefile
> @@ -29,6 +29,7 @@ bench-math := \
>    acosh \
>    acoshf \
>    asin \
> +  asinf \
>    asinh \

Ok.

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

Ok.

> +0x1.9e6e2p-3
> +0x1.13fdap-4
> +-0x1.399d9p-1
> . . .
> +-0x1.22ebe8p-1
> +-0x1.9e32f4p-1
> +0x1.d45d3p-2

Ok.



More information about the Libc-alpha mailing list