[PATCH 05/15] benchtests: Add cospif
DJ Delorie
dj@redhat.com
Fri Feb 7 22:51:20 GMT 2025
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> Random inpus in the range of [-1,1].
s/inpus/inputs/
> diff --git a/benchtests/Makefile b/benchtests/Makefile
> cosf \
> cosh \
> coshf \
> + cospif \
> erf \
> erfc \
> erfcf \
Ok.
> diff --git a/benchtests/cospif-inputs b/benchtests/cospif-inputs
> +## args: float
> +## ret: float
> +## includes: math.h
> +# Random inputs in [-1,1]
> +## name: workload-random
Ok.
> +0x1.f90c2p+1
This is NOT in the range [-1,1]
The data is in the range (-4,4)
I assume the comment is wrong, since cospi(x)'s domain is unbounded, and
a few multiples of pi seems reasonable.
> +-0x1.c63b68p-1
> +-0x1.cd3608p+1
> +0x1.0acddp+0
> +0x1.f8ba44p+1
More information about the Libc-alpha
mailing list