This is the mail archive of the glibc-bugs@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]

[Bug math/15367] Let gcc use __builtin_isinf


http://sourceware.org/bugzilla/show_bug.cgi?id=15367

--- Comment #7 from Marc Glisse <marc.glisse at normalesup dot org> 2013-05-08 19:02:05 UTC ---
(In reply to comment #6)
> judging from this mail it seems builtin_isinf_sign was explicitly added so it
> can be used in C libraries:
> http://gcc.gnu.org/ml/gcc-patches/2008-05/msg01067.html
> 
> the patch documents +1 and -1 as return values, just as glibc does.
> The source is still the same in gcc 4.8.

http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html#index-g_t_005f_005fbuiltin_005fisinf_005fsign-3391

"Similar to isinf, except the return value is negative for an argument of
-Inf."

That doesn't seem to be restricted to +1 and -1. You may want to ask gcc for a
stricter doc.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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