diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-07-02 22:32:51 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-07-02 22:32:51 -0400 |
commit | d461f84a27063e03a76edd9e01c4d97c929b356b (patch) | |
tree | 07b66992d789063c95c43bb2759876e1cabce33b /mathfuncs_exp.h | |
parent | 4ab94961f2e5198c5d98a2297cad06530cd4418d (diff) | |
download | vecmathlib-d461f84a27063e03a76edd9e01c4d97c929b356b.zip vecmathlib-d461f84a27063e03a76edd9e01c4d97c929b356b.tar.gz |
Improve performanc of exp10
Diffstat (limited to 'mathfuncs_exp.h')
-rw-r--r-- | mathfuncs_exp.h | 2 |
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> |