macros.h
changeset 1202 7d8b86bd8ba2
parent 1174 27e386195965
child 1247 01711347f9ac
equal deleted inserted replaced
1201:790c46deeba4 1202:7d8b86bd8ba2
    66 
    66 
    67 /* OPT: optimized into an unsigned comparison */
    67 /* OPT: optimized into an unsigned comparison */
    68 //#define IS_INSIDE_1D(x, base, size) ((x) >= (base) && (x) < (base) + (size))
    68 //#define IS_INSIDE_1D(x, base, size) ((x) >= (base) && (x) < (base) + (size))
    69 #define IS_INSIDE_1D(x, base, size) ( (uint)((x) - (base)) < ((uint)(size)) )
    69 #define IS_INSIDE_1D(x, base, size) ( (uint)((x) - (base)) < ((uint)(size)) )
    70 
    70 
    71 #define LANDSCAPE_SIZE_FACTOR 1
       
    72 
    71 
    73 enum {
    72 enum {
    74 	CORRECT_Z_BITS = 1 << 1 | 1 << 2 | 1 << 3 | 1 << 4 | 1 << 5 | 1 << 6 | 1 << 7
    73 	CORRECT_Z_BITS = 1 << 1 | 1 << 2 | 1 << 3 | 1 << 4 | 1 << 5 | 1 << 6 | 1 << 7
    75 };
    74 };
    76 #define CORRECT_Z(tileh) (CORRECT_Z_BITS & (1 << tileh))
    75 #define CORRECT_Z(tileh) (CORRECT_Z_BITS & (1 << tileh))