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

[Bug libstdc++/47913] [C++0x] improve ratio_add to overflow less often


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47913

--- Comment #18 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-03-02 23:21:07 UTC ---
(In reply to comment #17)
> Some more examples. Using the constants:
> m=INTMAX_MAX;
> n=INTMAX_MAX/2;
> p=((intmax_t)1<<(4*sizeof(intmax_t)-1))-3
> 
> (m,2)-(m,3)==(m,6)  boost should manage this one

I'm not sure to understand, I was under the impression that right now GCC is
essentially equal to boost::rational?!?


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