ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm_flag.h
Revision: 3.2
Committed: Sat Feb 22 02:07:25 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 3.1: +1 -4 lines
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# User Rev Content
1 greg 3.2 /* RCSid: $Id$ */
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     #define FLAG_BYTES(n) ((((n)+31) >>5)*sizeof(int4))