[libclc] 23/58: math: Fix ilogb(double) return type

Andreas Boll aboll-guest at moszumanska.debian.org
Thu Oct 6 08:16:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

aboll-guest pushed a commit to branch master
in repository libclc.

commit d2b49fa813766219b768c361cef721951153b41f
Author: Aaron Watry <awatry at gmail.com>
Date:   Wed Feb 24 00:52:15 2016 +0000

    math: Fix ilogb(double) return type
    
    Signed-off-by: Aaron Watry <awatry at gmail.com>
    Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@261714 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/lib/math/ilogb.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generic/lib/math/ilogb.cl b/generic/lib/math/ilogb.cl
index b783b7e..7ab7899 100644
--- a/generic/lib/math/ilogb.cl
+++ b/generic/lib/math/ilogb.cl
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git



More information about the Pkg-opencl-commits mailing list