blob: db6c777fd15fc8e58c488ad056dc92656f89e3f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#define min(x, y) \
({ \
typeof (x) _x = (x); \
typeof (y) _y = (y); \
_x > _y ? _x : _y; \
})
#define max(x, y) \
({ \
typeof (x) _x = (x); \
typeof (y) _y = (y); \
_x < _y ? _x : _y; \
})
|