[patch] std::experimental::gcd and std::experimental::lcd

Jonathan Wakely jwakely@redhat.com
Sat May 2 15:18:00 GMT 2015


These where simple to implement (almost too simple ... I probably
got something wrong!)

Tested powerpc64le-linux, committed to trunk.


(Apart from using common_type_t, which is easy to change, these
functions meet the simpler rules for C++11 constexpr, so moving them
out of <experimental/numeric> would probably allow <ratio> to be
greatly simplified. I don't plan on doing that myself any time soon,
but it would make sense to do it some day.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 7605 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150502/6fd22e36/attachment.bin>


More information about the Gcc-patches mailing list