From 4e9653e4441ba216fdedb4b6105a12ccad797028 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 19 Feb 2013 12:49:36 -0500 Subject: Provide vector types with 8 and 16 bit precision Use non-functional dummy float types fp8 and fp16. --- mathfuncs_fabs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mathfuncs_fabs.h') 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 realvec_t mathfuncs::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 realvec_t mathfuncs::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 -- cgit v1.1