bring up to revision 7 for tahoe release
[unix-history] / usr / src / sys / deprecated / bbnnet / seq.h
/* macros for sequence number comparison (32 bit modular arithmetic) */
#define SEQ_LT(a,b) ((long)((a)-(b)) < 0)
#define SEQ_LEQ(a,b) ((long)((a)-(b)) <= 0)
#define SEQ_GT(a,b) ((long)((a)-(b)) > 0)
#define SEQ_GEQ(a,b) ((long)((a)-(b)) >= 0)
#define SEQ_EQ(a,b) ((a) == (b))
#define SEQ_NEQ(a,b) ((a) != (b))
#define SEQ_MIN(a,b) (SEQ_LT((a),(b)) ? (a) : (b))
#define SEQ_MAX(a,b) (SEQ_GT((a),(b)) ? (a) : (b))