summaryrefslogtreecommitdiff
path: root/generic/lib/integer/abs_diff.inc
blob: 6ad57eed36731cf3bd158e22b376c0f71d7d3e04 (plain)
1
2
3
_CLC_OVERLOAD _CLC_DEF UGENTYPE abs_diff(GENTYPE x, GENTYPE y) {
  return __builtin_astype((GENTYPE)(x > y ? x-y : y-x), UGENTYPE);
}