update Simulation.cpp to use new macros
This commit is contained in:
parent
da45e0e469
commit
20e1abd840
@ -52,13 +52,13 @@
|
|||||||
|
|
||||||
// Change this to change the amount of bits used to store type in pmap (and a few elements such as PIPE and CRAY)
|
// Change this to change the amount of bits used to store type in pmap (and a few elements such as PIPE and CRAY)
|
||||||
#define PMAPBITS 8
|
#define PMAPBITS 8
|
||||||
#define PMAPMASK ((2<<(PMAPBITS-1))-1)
|
#define PMAPMASK ((1<<PMAPBITS)-1)
|
||||||
#define ID(r) ((r)>>PMAPBITS)
|
#define ID(r) ((r)>>PMAPBITS)
|
||||||
#define TYP(r) ((r)&PMAPMASK)
|
#define TYP(r) ((r)&PMAPMASK)
|
||||||
#define PMAP(id, typ) ((id)<<PMAPBITS | ((typ)&PMAPMASK))
|
#define PMAP(id, typ) ((id)<<PMAPBITS | ((typ)&PMAPMASK))
|
||||||
#define PMAPID(id) ((id)<<PMAPBITS)
|
#define PMAPID(id) ((id)<<PMAPBITS)
|
||||||
|
|
||||||
#define PT_NUM 256
|
#define PT_NUM (1<<PMAPBITS)
|
||||||
|
|
||||||
struct playerst;
|
struct playerst;
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user