[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
{
- [lmi-commits] [lmi] master 358c5c9 06/13: Modernize, (continued)
- [lmi-commits] [lmi] master 358c5c9 06/13: Modernize, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master edb098f 02/13: Strengthen unit tests, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master 2a3d961 03/13: Measure cost of a needless transcendental calculation, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master 6bc828a 05/13: Realign, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master 290dc89 10/13: Remove a source of inaccuracy [285], Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master a32cee0 13/13: Hoist a division, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master 1e49ee3 04/13: Revise 'round_to' documentation [286], Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master 1bead9e 08/13: Purge unwanted, commented-out code, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master ce9ed5c 07/13: Add an inchoate test of power-of-ten scaling, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master 858d037 09/13: Include appropriate headers, and say why they're included, Greg Chicares, 2021/04/09
- [lmi-commits] [lmi] master ca63009 11/13: Expunge an obsolete comment,
Greg Chicares <=
- [lmi-commits] [lmi] master c41faec 12/13: Resolve a marked defect [284], Greg Chicares, 2021/04/09