Files
clang-p2996/libclc/generic/lib/integer/abs.inc
Peter Collingbourne d5395fbf03 Initial commit.
llvm-svn: 147756
2012-01-08 22:09:58 +00:00

4 lines
126 B
C++

_CLC_OVERLOAD _CLC_DEF UGENTYPE abs(GENTYPE x) {
return __builtin_astype((GENTYPE)(x > (GENTYPE)(0) ? x : -x), UGENTYPE);
}