summaryrefslogtreecommitdiffstats
path: root/mathfuncs_exp.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-02 22:32:51 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-02 22:32:51 -0400
commitd461f84a27063e03a76edd9e01c4d97c929b356b (patch)
tree07b66992d789063c95c43bb2759876e1cabce33b /mathfuncs_exp.h
parent4ab94961f2e5198c5d98a2297cad06530cd4418d (diff)
downloadvecmathlib-d461f84a27063e03a76edd9e01c4d97c929b356b.zip
vecmathlib-d461f84a27063e03a76edd9e01c4d97c929b356b.tar.gz
Improve performanc of exp10
Diffstat (limited to 'mathfuncs_exp.h')
-rw-r--r--mathfuncs_exp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mathfuncs_exp.h b/mathfuncs_exp.h
index 99fd063..21c7521 100644
--- a/mathfuncs_exp.h
+++ b/mathfuncs_exp.h
@@ -114,7 +114,7 @@ namespace vecmathlib {
inline
realvec_t mathfuncs<realvec_t>::vml_exp10(realvec_t x)
{
- return exp(RV(M_LN10) * x);
+ return exp2(RV(M_LOG2E * M_LN10) * x);
}
template<typename realvec_t>
OpenPOWER on IntegriCloud