Skip to content

Commit

Permalink
update Simulation.cpp to use new macros
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Dec 29, 2017
1 parent da45e0e commit 20e1abd
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 239 deletions.
4 changes: 2 additions & 2 deletions src/simulation/Elements.h
Expand Up @@ -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)
#define PMAPBITS 8
#define PMAPMASK ((2<<(PMAPBITS-1))-1)
#define PMAPMASK ((1<<PMAPBITS)-1)
#define ID(r) ((r)>>PMAPBITS)
#define TYP(r) ((r)&PMAPMASK)
#define PMAP(id, typ) ((id)<<PMAPBITS | ((typ)&PMAPMASK))
#define PMAPID(id) ((id)<<PMAPBITS)

#define PT_NUM 256
#define PT_NUM (1<<PMAPBITS)

struct playerst;

Expand Down

0 comments on commit 20e1abd

Please sign in to comment.