src/oldpool.h
changeset 6573 7624f942237f
parent 5838 9c3129cb019b
child 6574 e1d1a12faaf7
equal deleted inserted replaced
6572:e35266003390 6573:7624f942237f
    66 			_##name##_pool.blocks[index >> name##_POOL_BLOCK_SIZE_BITS] + \
    66 			_##name##_pool.blocks[index >> name##_POOL_BLOCK_SIZE_BITS] + \
    67 			(index & ((1 << name##_POOL_BLOCK_SIZE_BITS) - 1)) * sizeof(type) \
    67 			(index & ((1 << name##_POOL_BLOCK_SIZE_BITS) - 1)) * sizeof(type) \
    68 		); \
    68 		); \
    69 	} \
    69 	} \
    70 \
    70 \
    71 	static inline uint Get##name##PoolSize(void) \
    71 	static inline uint Get##name##PoolSize() \
    72 	{ \
    72 	{ \
    73 		return _##name##_pool.total_items; \
    73 		return _##name##_pool.total_items; \
    74 	}
    74 	}
    75 
    75 
    76 
    76