This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/47913] [C++0x] improve ratio_add to overflow less often
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 2 Mar 2011 23:21:11 +0000
- Subject: [Bug libstdc++/47913] [C++0x] improve ratio_add to overflow less often
- Auto-submitted: auto-generated
- References: <bug-47913-4@http.gcc.gnu.org/bugzilla/>
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?!?