Revision: | 3.4 |
Committed: | Fri Nov 5 03:31:37 2004 UTC (20 years, 6 months ago) by greg |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | HEAD |
Changes since 3.3: | +1 -1 lines |
State: | FILE REMOVED |
Log Message: | Removed unused programs and files from distribution (sources to CVS attic) |
# | User | Rev | Content |
---|---|---|---|
1 | greg | 3.4 | /* RCSid: $Id: sm_flag.h,v 3.3 2003/06/20 00:25:49 greg Exp $ */ |
2 | gwlarson | 3.1 | /* sm_flag.h */ |
3 | |||
4 | /* 32 bit FLAGS */ | ||
5 | #define F_OFFSET(t) ((t)>>5) | ||
6 | #define F_BIT(t) ((t)&0x1f) | ||
7 | #define F_OP(f,t,op) ((f)[F_OFFSET(t)] op (0x1<<F_BIT(t))) | ||
8 | #define IS_FLAG(f,t) F_OP(f,t,&) | ||
9 | #define SET_FLAG(f,t) F_OP(f,t,|=) | ||
10 | #define CLR_FLAG(f,t) F_OP(f,t,&=~) | ||
11 | greg | 3.3 | #define FLAG_BYTES(n) ((((n)+31) >>5)*sizeof(int32)) |