[PATCH v2 05/25] benchtests: Add atanf benchmark

DJ Delorie dj@redhat.com
Sat Dec 7 00:38:25 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 47d22b090f..143d6c2bbf 100644
> --- a/benchtests/Makefile
> +++ b/benchtests/Makefile
> @@ -34,6 +34,7 @@ bench-math := \
>    asinhf \
>    atan \
>    atan2 \
> +  atanf \
>    atanh \

Ok.  In an earlier patch we talked about an exception for the 'f' suffix
for makefile target ordering... although it wouldn't matter here, how
would we then sort atan2 and atanf with such an exception?

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

Ok.


> +0x1.82c748p+2
> +-0x1.0b2fa6p+3
> +0x1.1aeap+3
> . . .
> +0x1.0bc478p+2
> +-0x1.bf95bp+0
> +-0x1.3ed4cap+2

Ok.



More information about the Libc-alpha mailing list