diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-02-19 12:49:36 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-02-19 12:49:36 -0500 |
commit | 4e9653e4441ba216fdedb4b6105a12ccad797028 (patch) | |
tree | 569ae7b500ce689410f5e6bb7677017876a5a6d5 /mathfuncs_fabs.h | |
parent | 0208cd9fcea032092d892587c444f1a6b0891425 (diff) | |
download | vecmathlib-4e9653e4441ba216fdedb4b6105a12ccad797028.zip vecmathlib-4e9653e4441ba216fdedb4b6105a12ccad797028.tar.gz |
Provide vector types with 8 and 16 bit precision
Use non-functional dummy float types fp8 and fp16.
Diffstat (limited to 'mathfuncs_fabs.h')
-rw-r--r-- | mathfuncs_fabs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mathfuncs_fabs.h b/mathfuncs_fabs.h index 1050147..952dbef 100644 --- a/mathfuncs_fabs.h +++ b/mathfuncs_fabs.h @@ -14,7 +14,7 @@ namespace vecmathlib { template<typename realvec_t> realvec_t mathfuncs<realvec_t>::vml_copysign(realvec_t x, realvec_t y) { - intvec_t value = as_int(x) & IV(~FP::signbit_mask); + intvec_t value = as_int(x) & IV(U(~FP::signbit_mask)); intvec_t sign = as_int(y) & IV(FP::signbit_mask); return as_float(sign | value); } @@ -22,7 +22,7 @@ namespace vecmathlib { template<typename realvec_t> realvec_t mathfuncs<realvec_t>::vml_fabs(realvec_t x) { - return as_float(as_int(x) & IV(~FP::signbit_mask)); + return as_float(as_int(x) & IV(U(~FP::signbit_mask))); } template<typename realvec_t> |