[PATCH 03/15] benchtests: Add atan2pif

DJ Delorie dj@redhat.com
Fri Feb 7 22:19:38 GMT 2025


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

> diff --git a/benchtests/Makefile b/benchtests/Makefile
> index d0b527a64f..571ae4ceb5 100644
> --- a/benchtests/Makefile
> +++ b/benchtests/Makefile
> @@ -37,6 +37,7 @@ bench-math := \
>    atan \
>    atan2 \
>    atan2f \
> +  atan2pif \
>    atanf \

Ok.

> diff --git a/benchtests/atan2pif-inputs b/benchtests/atan2pif-inputs
> +## args: float:float
> +## ret: float
> +## includes: math.h
> +# Random x,y inputs in the range [-10,10]
> +## name: workload-random

Ok.

> +0x1.663bap+2, 0x1.b2403p+2
> +0x1.44dcb4p+2, -0x1.9a01p+2
> +0x1.644ffp+1, 0x1.eb4138p+2
> +-0x1.6cca2p+2, 0x1.04627p+2
> +-0x1.056a12p+3, -0x1.422b14p+1
> . . .
> +0x1.e76a18p+1, 0x1.a9d158p+1
> +0x1.1e4b8p+3, -0x1.c260ccp+1
> +0x1.f5a278p+2, 0x1.92b2a8p+2
> +0x1.6bd6p-3, 0x1.2bbf5cp+3
> +-0x1.1e3edcp+2, -0x1.41af8p+0

Ok.

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



More information about the Libc-alpha mailing list