mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 11:41:17 +00:00
4 lines
126 B
C++
4 lines
126 B
C++
_CLC_OVERLOAD _CLC_DEF UGENTYPE abs(GENTYPE x) {
|
|
return __builtin_astype((GENTYPE)(x > (GENTYPE)(0) ? x : -x), UGENTYPE);
|
|
}
|