| Revision: | 3.4 |
| Committed: | Fri Nov 5 03:31:37 2004 UTC (21 years, 2 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) |
| # | Content |
|---|---|
| 1 | /* RCSid: $Id: sm_flag.h,v 3.3 2003/06/20 00:25:49 greg Exp $ */ |
| 2 | /* 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 | #define FLAG_BYTES(n) ((((n)+31) >>5)*sizeof(int32)) |