[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Optimized integral power
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] Optimized integral power |
Date: |
Thu, 22 Dec 2016 15:45:08 +0100 |
On Thu, 22 Dec 2016 02:36:49 +0000 Greg Chicares <address@hidden> wrote:
GC> Please take a look at commit 569b775d3ffc4afc526a83cb1a769f6d604101a8
GC> and let me know if you see any reason to keep the std::pow() alternative,
GC> now in a #if 0 ... #endif block. I'm inclined to remove it soon.
I agree, I don't see how std::pow() could do better than what the new code
does (well, in theory some CPU could have a dedicated instruction for
performing this operation, but in practice I don't know of any such
instruction).
On a completely unrelated note, I've looked at stl_extensions.hpp while
reviewing this and noticed copy_n() and iota() functions in it. It's true
that they were only available in some extensions of C++98 STL, but now they
are part of C++11 standard, so I think they should be removed now and the
corresponding std versions should be used instead. This looks especially
simple to do because each of these functions is only used once (in
ihs_acctval.cpp for copy_n and in gpt_test.cpp for iota). As always, I'm
ready to make a patch (or two) if it could be useful.
Please let me know if it would,
VZ
- Re: [lmi] MinGW-w64 anomaly?, (continued)
- Re: [lmi] MinGW-w64 anomaly?, Greg Chicares, 2016/12/25
- Re: [lmi] MinGW-w64 anomaly?, Vadim Zeitlin, 2016/12/25
- Re: [lmi] MinGW-w64 anomaly?, Greg Chicares, 2016/12/26
- Re: [lmi] MinGW-w64 anomaly?, Vadim Zeitlin, 2016/12/26
- Re: [lmi] MinGW-w64 anomaly?, Greg Chicares, 2016/12/27
- Re: [lmi] MinGW-w64 anomaly?, Vadim Zeitlin, 2016/12/27
- [lmi] Optimized integral power [Was: MinGW-w64 anomaly?], Greg Chicares, 2016/12/21
- Re: [lmi] Optimized integral power,
Vadim Zeitlin <=
- Re: [lmi] Optimized integral power, Greg Chicares, 2016/12/22
- Re: [lmi] Optimized integral power, Vadim Zeitlin, 2016/12/22
- Re: [lmi] Optimized integral power, Greg Chicares, 2016/12/23
- Re: [lmi] libstdc++ anomaly? [was: MinGW-w64 anomaly?], Vadim Zeitlin, 2016/12/19
- [lmi] gcc -flto [Was: libstdc++ anomaly?], Greg Chicares, 2016/12/24
- Re: [lmi] gcc -flto, Vadim Zeitlin, 2016/12/24
- Re: [lmi] gcc -flto, Greg Chicares, 2016/12/24
- [lmi] gcc -fprofile-generate and -fprofile-use [Was: gcc -flto], Greg Chicares, 2016/12/27
- [lmi] gcc -fprofile-generate and -fprofile-use [Was: gcc -flto], Greg Chicares, 2016/12/27
- Re: [lmi] gcc -fprofile-generate and -fprofile-use [Was: gcc -flto], Vadim Zeitlin, 2016/12/27