This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/4] benchtests: Add fmaxf/fminf benchmarks



On Monday 19 December 2016 07:34 PM, Adhemerval Zanella wrote:
> This patch adds fmaxf and fminf benchtests.  It is based on
> math/s_fmax_template.c implementation which checks for basically four
> different classes:
> 
>   1. if x is greater or equal than y.
>   2. if x is less than y.
>   3. if x or y is signaling.
>   4. if y is nan.
> 
> Cases 1 and 2 are used for default input number (by mixing normal double
> numbers and infinity), while case 3 and 4 are used each for on for a
> benchmark class.
> 
> Checked on x86_64-linux-gnu and powerpc64-linux-gnu.
> 
> 	* benchtests/Makefile (bench-math): Add fminf and fmaxf.
>         * benchtests/fmaxf-inputs: New file.
>         * benchtests/fminf-inputs: Likewise.

Looks good to me.

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]