repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[IPSCCP][FuncSpec] Protect against metadata access from call args. (#124284)
[llvm-project.git]
/
libclc
/
clc
/
lib
/
generic
/
integer
/
clc_abs_diff.inc
blob
c0fe0fcdd01236e2c5962c9bf6de423ed187b87b
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;
6
}