diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-01-19 18:48:59 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-01-19 18:48:59 (GMT) |
| commit | ff01973658fc72b107c820e7f9f738e1a872b261 (patch) | |
| tree | 54a348c092f3324a81f46f13f26c7fc88568a24c /includes | |
| parent | 5c65d69dacfb8fda234c71b78f55a849d246fcc2 (diff) | |
| download | powder-ff01973658fc72b107c820e7f9f738e1a872b261.zip powder-ff01973658fc72b107c820e7f9f738e1a872b261.tar.gz | |
made all the shifts and type checks use defines, so it can be changed easier, and put it back to normal with a shift of 8.
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/defines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/defines.h b/includes/defines.h index 562ee0d..d44eb76 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -36,6 +36,9 @@ #define MAXSIGNS 16 #define TAG_MAX 256 +#define PS 8 //the particle number shift that also determines element limit +#define TYPE (int)pow(2,PS)-1 //where the type of the particle is stored in pmap + #define ZSIZE_D 16 #define ZFACTOR_D 8 extern unsigned char ZFACTOR; |
