 |
min |
Function (Macro) |
#define min(a,b) ({typeof(a) __a = (a); typeof(b) __b = (b); (__a < __b) ? __a : __b;}) |
Minimum of two integer values.
min is an inline function (implemented using GNU C smart macros) which returns the smaller of
a and b. They may be any numeric values, either integer or floating point
numbers, and they also may be pointers to the same base type. The result has the type of the
argument which has greater range of possible values (e.g. if one is float and second one is
long int, the result is of float type).