common: add MIN and MAX macros

This commit is contained in:
2024-11-18 09:53:35 +00:00
parent 61eabd52c4
commit f44a3364b3

View File

@@ -11,4 +11,7 @@
#define IVY_API extern
#endif
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#endif