diff options
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index 32cf714857..70c5fb50a7 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -154,6 +154,12 @@ static inline unsigned long ALIGN_POWER2(unsigned long u) { _a < _b ? _a : _b; \ }) +#define MIN3(x,y,z) \ + __extension__ ({ \ + typeof(x) _c = MIN(x,y); \ + MIN(_c, z); \ + }) + #define LESS_BY(A,B) \ __extension__ ({ \ typeof(A) _A = (A); \ |