diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-02-05 12:19:38 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-02-05 12:19:38 -0500 |
commit | 4bf5494a265ad7889ce3c5dfdd96ff55b37944de (patch) | |
tree | f78500622e24c9c594b87703aaf1b6730d6f0e97 /mathfuncs_fabs.h | |
parent | 703f4da6dda278f6219f301e5c683766e13a7f48 (diff) | |
download | vecmathlib-4bf5494a265ad7889ce3c5dfdd96ff55b37944de.zip vecmathlib-4bf5494a265ad7889ce3c5dfdd96ff55b37944de.tar.gz |
Improve scalbn()
Diffstat (limited to 'mathfuncs_fabs.h')
-rw-r--r-- | mathfuncs_fabs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mathfuncs_fabs.h b/mathfuncs_fabs.h index 3d59725..f2f809e 100644 --- a/mathfuncs_fabs.h +++ b/mathfuncs_fabs.h @@ -106,7 +106,7 @@ namespace vecmathlib { template<typename realvec_t> realvec_t mathfuncs<realvec_t>::vml_scalbn(realvec_t x, intvec_t n) { - return as_float(as_int(x) + (n << IV(FP::mantissa_bits))); + return as_float(as_int(x) + (n << I(FP::mantissa_bits))); // return x * as_float((n + exponent_offset) << mantissa_bits); } |