Scroll to navigation

ABS(9) Driver Basics ABS(9)

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.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10