lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master ca63009 11/13: Expunge an obsolete comment


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ca63009 11/13: Expunge an obsolete comment
Date: Fri, 9 Apr 2021 18:42:38 -0400 (EDT)

branch: master
commit ca630090eb2a6d1308d47e8fc02415524232ce87
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Expunge an obsolete comment
    
    Nowadays, the 'inline' keyword pertains to linkage, and has mostly or
    completely lost its historical meaning. Experimentally removing 'inline'
    for members of class round_to had no measurable effect on speed.
---
 round_to.hpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/round_to.hpp b/round_to.hpp
index a5aed11..06bd092 100644
--- a/round_to.hpp
+++ b/round_to.hpp
@@ -268,9 +268,6 @@ bool round_to<RealType>::operator==(round_to const& z) const
     return decimals() == z.decimals() && style() == z.style();
 }
 
-// Profiling shows that inlining this member function makes a
-// realistic application that performs a lot of rounding run about
-// five percent faster with gcc.
 template<typename RealType>
 inline RealType round_to<RealType>::operator()(RealType r) const
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]