Revision 5e173e9f lib/birdlib.h

View differences:

lib/birdlib.h
35 35
#define DELTA(a,b) (((a)>=(b))?(a)-(b):(b)-(a))
36 36
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a)))
37 37

  
38
static inline int uint_cmp(uint i1, uint i2)
39
{ return (int)(i1 > i2) - (int)(i1 < i2); }
40

  
41
static inline int u64_cmp(u64 i1, u64 i2)
42
{ return (int)(i1 > i2) - (int)(i1 < i2); }
43

  
38 44

  
39 45
/* Bitfield macros */
40 46

  

Also available in: Unified diff