ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm_flag.h
Revision: 3.3
Committed: Fri Jun 20 00:25:49 2003 UTC (20 years, 9 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R6P1, rad3R6
Changes since 3.2: +2 -2 lines
Log Message:
Changed instances of "int4" to "int32" and "int2" to "int16"

File Contents

# Content
1 /* RCSid: $Id: sm_flag.h,v 3.2 2003/02/22 02:07:25 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))