From d461f84a27063e03a76edd9e01c4d97c929b356b Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 2 Jul 2013 22:32:51 -0400 Subject: Improve performanc of exp10 --- mathfuncs_exp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::vml_exp10(realvec_t x) { - return exp(RV(M_LN10) * x); + return exp2(RV(M_LOG2E * M_LN10) * x); } template -- cgit v1.1