Linked by Amjith Ramanujam on Fri 21st Nov 2008 03:38 UTC
General Development The Linux kernel uses several special capabilities of the GNU Compiler Collection (GCC) suite. These capabilities range from giving you shortcuts and simplifications to providing the compiler with hints for optimization. Discover some of these special GCC features and learn how to use them in the Linux kernel.
Permalink for comment 337967
To read all comments associated with this story, please click here.
Comment by Yamin
by Yamin on Fri 21st Nov 2008 04:58 UTC
Yamin
Member since:
2006-01-10

----------
#define min(x, y) ({ \
typeof(x) _min1 = (x); \
typeof(y) _min2 = (y); \
(void) (&_min1 == &_min2); \
_min1 < _min2 ? _min1 : _min2; })
-------------

anyone know what why this line is there:
void) (&_min1 == &_min2);
?