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: [RFC] [BZ15384] Enchance finite and isfinite.


On Sun, Apr 21, 2013 at 08:41:33PM +0200, Marc Glisse wrote:
> On Sun, 21 Apr 2013, OndÅej BÃlka wrote:
> 
> >On Sun, Apr 21, 2013 at 03:35:19PM +0200, Marc Glisse wrote:
> >>On Sun, 21 Apr 2013, OndÅej BÃlka wrote:
> >>>However on x64 even gcc without optimizations expands finite to inline
> >>>version which is slower than my version(see benchmark).
> >>

Following should generic version be tried on other archs. I could get
20% speedup on sparc on this benchmark. 

run with
for i in `seq 0 7`; do echo finite$i;  gcc finite_bench.c -O3 -Wall -W -fno-builtin-finite -Dfinite=finite$i; for j in `seq 1 8`; do /usr/bin/time -f "%U" ./a.out; done; done

Attachment: finite_bench_generic.c
Description: Text document


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