common: add MIN and MAX macros
This commit is contained in:
@@ -11,4 +11,7 @@
|
|||||||
#define IVY_API extern
|
#define IVY_API extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
||||||
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user