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
[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git]
/
libclc
/
generic
/
lib
/
integer
/
abs_diff.inc
blob
2d3c492cae0e68a1e5001a8cac70f88edc393075
1
_CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y) {
2
__CLC_U_GENTYPE ux = __builtin_astype(x, __CLC_U_GENTYPE);
3
__CLC_U_GENTYPE uy = __builtin_astype(y, __CLC_U_GENTYPE);
4
return x > y ? ux - uy : uy - ux;
5
}