Name

abs — return absolute value of an argument

Synopsis

abs ( x);
 

Arguments

x

the value. If it is unsigned type, it is converted to signed type first (s64, long or int depending on its size).

Return

an absolute value of x. If x is 64-bit, macro's return type is s64, otherwise it is signed long.