Add generic MIN()/MAX() functions.
This commit is contained in:
parent
e0723497b3
commit
6e6b888e31
@ -10,6 +10,11 @@
|
|||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
|
||||||
|
/** generic ops *************************************************/
|
||||||
|
|
||||||
|
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
||||||
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
||||||
/** memomry allocation ******************************************/
|
/** memomry allocation ******************************************/
|
||||||
|
|
||||||
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)
|
// TODO make a lazy m_renew that can increase by a smaller amount than requested (but by at least 1 more element)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user