C++11 classes

Hans Aberg haberg-1 at telia.com
Wed Nov 16 10:35:49 CET 2011


I drafted some C++11 classes integer etc., using move constructors and assignment operators, and then testing with a conversion of the pi program. In the most optimized version, the overhead is less than 10% relative C or C compile as C++, and the funny thing is that it does not call any constructors or assignments at all. The reason is that either the compiler can optimize them away, or in a few cases, one can do some rewriting.

Hans




More information about the gmp-discuss mailing list