[libclc] 48/291: libclc: Fix abs_diff builtin integer function

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:32 UTC 2015


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

anbe pushed a commit to branch master
in repository libclc.

commit 56a70faadd8266175535c49f9296c0976662e9d2
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Wed Jun 26 18:20:50 2013 +0000

    libclc: Fix abs_diff builtin integer function
    
    Patch by: Aaron Watry
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184993 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/lib/SOURCES              | 1 +
 generic/lib/integer/abs_diff.inc | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/generic/lib/SOURCES b/generic/lib/SOURCES
index b593941..a97213b 100644
--- a/generic/lib/SOURCES
+++ b/generic/lib/SOURCES
@@ -4,6 +4,7 @@ geometric/dot.cl
 geometric/length.cl
 geometric/normalize.cl
 integer/abs.cl
+integer/abs_diff.cl
 integer/add_sat.cl
 integer/add_sat.ll
 integer/add_sat_impl.ll
diff --git a/generic/lib/integer/abs_diff.inc b/generic/lib/integer/abs_diff.inc
index 93efdba..6ad57ee 100644
--- a/generic/lib/integer/abs_diff.inc
+++ b/generic/lib/integer/abs_diff.inc
@@ -1,3 +1,3 @@
-_CLC_OVERLOAD _CLC_DEF UGENTYPE abs_diff(GENTYPE x) {
+_CLC_OVERLOAD _CLC_DEF UGENTYPE abs_diff(GENTYPE x, GENTYPE y) {
   return __builtin_astype((GENTYPE)(x > y ? x-y : y-x), UGENTYPE);
 }

-- 
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