1
#define OFFSET(structure, member) ((int) &((structure *)0)->member)
2
#ifndef IS2POWER
#define IS2POWER(x) (!((x)&((x)-(1))))
#endif
3
#ifndef INRANGE
#define INRANGE(Low,Num,High) (((Low)<=(Num))&&((Num)<=(High)))
#endif
4
#ifndef DIMOF
#define DIMOF(Array) (sizeof(Array)/sizeof(Array[0]))
#endif
5
#ifndef MAX3
#define MAX3(a,b,c) ((a>b?a:b)>c?(a>b?a:b):c)
#endif
#ifndef MIN3
#define MIN3(a,b,c) ((a
#endif
阅读(553) | 评论(0) | 转发(0) |