[libclc] 90/291: Implement mad_hi built-in

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:36 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 31238f4a50067b8bcfe48096f760c05068b24285
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Sep 6 22:09:51 2013 +0000

    Implement mad_hi built-in
    
    We already have a working mul_hi, and the spec gives us the implementation as:
    Returns mul_hi(a,b)+c.
    
    Signed-off-by: Aaron Watry <awatry at gmail.com>
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@190211 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/include/clc/clc.h            | 1 +
 generic/include/clc/integer/mad_hi.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index aeb3949..467cd58 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -67,6 +67,7 @@
 #include <clc/integer/clz.h>
 #include <clc/integer/hadd.h>
 #include <clc/integer/mad24.h>
+#include <clc/integer/mad_hi.h>
 #include <clc/integer/mul24.h>
 #include <clc/integer/mul_hi.h>
 #include <clc/integer/rhadd.h>
diff --git a/generic/include/clc/integer/mad_hi.h b/generic/include/clc/integer/mad_hi.h
new file mode 100644
index 0000000..e67c988
--- /dev/null
+++ b/generic/include/clc/integer/mad_hi.h
@@ -0,0 +1 @@
+#define mad_hi(a, b, c) (mul_hi(a,b)+c)

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