diff options
author | Aaron Watry <awatry@gmail.com> | 2013-03-20 17:47:13 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-03-20 17:47:13 -0500 |
commit | 42678915299cc85229c3806ae644ed5793d2ab27 (patch) | |
tree | e0727b23f7bb8f23ddfa1ef90a81bb202ac1daab | |
parent | 1509ccf4eab372460293ceef917b1a5db0e0bdb3 (diff) |
libclc: Fix abs_diff builtin integer function
-rw-r--r-- | generic/lib/SOURCES | 1 | ||||
-rw-r--r-- | generic/lib/integer/abs_diff.inc | 2 |
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); } |