ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm_flag.h
Revision: 3.1
Committed: Tue Oct 6 18:23:07 1998 UTC (25 years, 6 months ago) by gwlarson
Content type: text/plain
Branch: MAIN
Log Message:
Initial revision

File Contents

# Content
1 /* Copyright (c) 1998 Silicon Graphics, Inc. */
2
3 /* SCCSid "$SunId$ SGI" */
4
5 /* sm_flag.h */
6
7 /* 32 bit FLAGS */
8 #define F_OFFSET(t) ((t)>>5)
9 #define F_BIT(t) ((t)&0x1f)
10 #define F_OP(f,t,op) ((f)[F_OFFSET(t)] op (0x1<<F_BIT(t)))
11 #define IS_FLAG(f,t) F_OP(f,t,&)
12 #define SET_FLAG(f,t) F_OP(f,t,|=)
13 #define CLR_FLAG(f,t) F_OP(f,t,&=~)
14 #define FLAG_BYTES(n) ((((n)+31) >>5)*sizeof(int4))