[v3] libstdc++/47913 (again)
Paolo Carlini
paolo.carlini@oracle.com
Wed May 4 23:40:00 GMT 2011
Hi,
Marc kindly contributed the below rewrite of std::ratio_add (and
ratio_less), algorithmically derived from the macro __udiv_qrnnd_c in
gcc's longlong.h, which amounts to the best behavior in terms of
accepted inputs: a pair of std::ratio is *never* rejected unless the
resulting std::ratio would not be legal.
Tested x86_64-linux multilib, committed to mainline.
Paolo.
/////////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_47913_again
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110504/de207e40/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_47913_again
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110504/de207e40/attachment-0001.ksh>
More information about the Gcc-patches
mailing list