diff options
Diffstat (limited to 'mathfuncs_sqrt.h')
-rw-r--r-- | mathfuncs_sqrt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mathfuncs_sqrt.h b/mathfuncs_sqrt.h index e33d1cb..c1ea3f7 100644 --- a/mathfuncs_sqrt.h +++ b/mathfuncs_sqrt.h @@ -27,7 +27,7 @@ namespace vecmathlib { // TODO: divide by M_SQRT2 if ilogb_x % 2 == 1 ? #else real_t correction = - std::scalbn(FP::exponent_offset & 1 ? M_SQRT2 : 1.0, + std::scalbn(R(FP::exponent_offset & 1 ? M_SQRT2 : 1.0), FP::exponent_offset >> 1); realvec_t r = lsr(x.as_int(), 1).as_float() * RV(correction); #endif |