tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
utility.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX(a, b)
 
#define MIN(a, b)
 
#define DIVIDE_AND_ROUND_UP(a, b)
 

Macro Definition Documentation

#define DIVIDE_AND_ROUND_UP (   a,
 
)
Value:
({ \
__typeof(a) _a = (a); \
__typeof(b) _b = (b); \
(_a / _b) + (((_a % _b) > 0) ? (1) : (0)); \
})
#define MAX (   a,
 
)
Value:
({ \
__typeof(a) _a = (a); \
__typeof(b) _b = (b); \
(_a > _b) ? (_a) : (_b); \
})
#define MIN (   a,
 
)
Value:
({ \
__typeof(a) _a = (a); \
__typeof(b) _b = (b); \
(_a < _b) ? (_a) : (_b); \
})