This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: implement __builtin_copysign


On Fri, 28 Jan 2005, Paolo Carlini wrote:

> Wouldn't be simpler and consistent just having the Annex G algorithm as
> default both for C++ and C generally, and override it to the textbook one

Or, rather, an algorithm which achieves the Annex G treatment of NaNs and 
infinities but also takes more care to avoid undue overflow (an attachment 
to bug 18902 illustrates division with scaling to avoid overflow in 
calculation of either numerator or denominator, but without dealing with 
NaNs and infinities).

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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