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