math: Fix ilogb(double) return type
authorAaron Watry <awatry@gmail.com>
Wed, 24 Feb 2016 00:52:15 +0000 (00:52 +0000)
committerAaron Watry <awatry@gmail.com>
Wed, 24 Feb 2016 00:52:15 +0000 (00:52 +0000)
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 261714

libclc/generic/lib/math/ilogb.cl

index b783b7e..7ab7899 100644 (file)
@@ -41,7 +41,7 @@ _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, int, ilogb, float);
 #ifdef cl_khr_fp64
 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
 
-_CLC_OVERLOAD _CLC_DEF ilogb(double x) {
+_CLC_OVERLOAD _CLC_DEF int ilogb(double x) {
     ulong ux = as_ulong(x);
     ulong ax = ux & ~SIGNBIT_DP64;
     int r = (int) (ax >> EXPSHIFTBITS_DP64) - EXPBIAS_DP64;