summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-03-20 17:47:13 -0500
committerTom Stellard <thomas.stellard@amd.com>2013-04-08 07:12:54 -0700
commite8551666607a377420ecf3a4ec7e9dbf4114ec62 (patch)
tree5359010d6b7a485d603c737f72f07052057259c1
parent74fb9e11ace08018b01cddbde93002356ca0a0f2 (diff)
libclc: Fix abs_diff builtin integer function
-rw-r--r--generic/lib/SOURCES1
-rw-r--r--generic/lib/integer/abs_diff.inc2
2 files changed, 2 insertions, 1 deletions
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);
}