[IPSCCP][FuncSpec] Protect against metadata access from call args. (#124284)
[llvm-project.git] / libclc / clc / lib / generic / integer / clc_abs_diff.inc
blobc0fe0fcdd01236e2c5962c9bf6de423ed187b87b
1 _CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE __clc_abs_diff(__CLC_GENTYPE x,
2                                                       __CLC_GENTYPE y) {
3   __CLC_U_GENTYPE ux = __builtin_astype(x, __CLC_U_GENTYPE);
4   __CLC_U_GENTYPE uy = __builtin_astype(y, __CLC_U_GENTYPE);
5   return x > y ? ux - uy : uy - ux;