From 42678915299cc85229c3806ae644ed5793d2ab27 Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Wed, 20 Mar 2013 17:47:13 -0500 Subject: libclc: Fix abs_diff builtin integer function --- 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); } -- cgit v1.2.3