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, 21 Apr 2013, Ondřej Bílka wrote:

Hi, on http://sourceware.org/bugzilla/show_bug.cgi?id=15384 is request
to improve finite.

I noticed that integer constants there are unnecessary, shift suffices.

However on x64 even gcc without optimizations expands finite to inline
version which is slower than my version(see benchmark).

This seems to depend on the CPU. Here:
model name	: Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz

your new code from the PR is noticably slower than the current code (copied to the test file to be fair), while the code you posted in this email and gcc's __builtin_finite are comparable to the current code. Changing the constant as suggested in the PR brings a very small but measurable speedup.

I will fill this to gcc bugzilla.

Maybe you can reuse PR56944?


--
Marc Glisse


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