7 lines
146 B
C
7 lines
146 B
C
#pragma once
|
|
|
|
//minimum of two integers
|
|
#define min(a,b) \
|
|
({ __typeof__ (a) _a = (a); \
|
|
__typeof__ (b) _b = (b); \
|
|
_a < _b ? _a : _b; })
|