math: limit half_sqrt to single precision

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 236941
This commit is contained in:
Jan Vesely 2015-05-09 22:31:03 +00:00
parent 7c829fe149
commit b0fb990b54
2 changed files with 4 additions and 6 deletions

View File

@ -24,8 +24,8 @@
#define __CLC_BODY <clc/math/unary_decl.inc>
#define __CLC_FUNCTION half_sqrt
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>
#undef __FLOAT_ONLY
#undef __CLC_BODY
#undef __CLC_FUNCTION

View File

@ -22,9 +22,7 @@
#include <clc/clc.h>
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#endif
#define __CLC_BODY <half_sqrt.inc>
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>
#undef __FLOAT_ONLY