[PATCH 05/15] benchtests: Add cospif

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Tue Feb 11 13:13:05 GMT 2025



On 07/02/25 19:51, DJ Delorie wrote:
> 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.

You are right, I used the same input range CORE-MATH uses for performance
evaluation and it is on the range of [-4,4].  I will update the comment.

> 
>> +-0x1.c63b68p-1
>> +-0x1.cd3608p+1
>> +0x1.0acddp+0
>> +0x1.f8ba44p+1
> 



More information about the Libc-alpha mailing list