Sign in
llvm
/
llvm-project
/
311dd55c9eb9342b1c889f6db7728f15b05378bb
/
.
/
libclc
/
generic
/
lib
/
integer
/
abs_diff.inc
blob: f39c3ff4d3e8ab65347258675669520b9ab76e42 [
file
] [
log
] [
blame
]
_CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs_diff
(
__CLC_GENTYPE x
,
__CLC_GENTYPE y
)
{
return
__builtin_astype
((
__CLC_GENTYPE
)(
x
>
y
?
x
-
y
:
y
-
x
),
__CLC_U_GENTYPE
);
}