[Mesa-dev] [PATCH 1/3] libclc: Fix abs_diff builtin integer function
Aaron Watry
awatry at gmail.com
Thu Mar 14 20:01:01 PDT 2013
---
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);
}
--
1.7.10.4
More information about the mesa-dev
mailing list