lib: add common min and max macros

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2014-10-10 11:20:35 +01:00
parent d4e3b6a0f5
commit be4710a541
5 changed files with 8 additions and 12 deletions
+4
View File
@@ -83,4 +83,8 @@ bool intel_check_memory(uint32_t count, uint32_t size, unsigned mode);
#define CHECK_RAM 0x1
#define CHECK_SWAP 0x2
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) < (b) ? (a) : (b))
#endif /* IGT_AUX_H */