Lines Matching refs:this_pool
79 #define SCI_POOL_INCREMENT(this_pool, index) \ argument
80 (((index) + 1) == (this_pool).size ? 0 : (index) + 1)
101 #define sci_pool_empty(this_pool) \ argument
102 ((this_pool).get == (this_pool).put)
108 #define sci_pool_full(this_pool) \ argument
109 (SCI_POOL_INCREMENT(this_pool, (this_pool).put) == (this_pool).get)
117 #define sci_pool_size(this_pool) \ argument
118 ((this_pool).size - 1)
124 #define sci_pool_count(this_pool) \ argument
126 sci_pool_empty((this_pool)) \
129 sci_pool_full((this_pool)) \
130 ? sci_pool_size((this_pool)) \
132 (this_pool).get > (this_pool).put \
133 ? ((this_pool).size - (this_pool).get + (this_pool).put) \
134 : ((this_pool).put - (this_pool).get) \
142 #define sci_pool_initialize(this_pool) \ argument
144 (this_pool).size = (sizeof((this_pool).array) / sizeof((this_pool).array[0])); \
145 (this_pool).get = 0; \
146 (this_pool).put = 0; \
153 #define sci_pool_get(this_pool, my_value) \ argument
155 (my_value) = (this_pool).array[(this_pool).get]; \
156 (this_pool).get = SCI_POOL_INCREMENT((this_pool), (this_pool).get); \
163 #define sci_pool_put(this_pool, the_value) \ argument
165 (this_pool).array[(this_pool).put] = (the_value); \
166 (this_pool).put = SCI_POOL_INCREMENT((this_pool), (this_pool).put); \
174 #define sci_pool_erase(this_pool, type, the_value) \ argument
178 U32 element_count = sci_pool_count((this_pool)); \
182 sci_pool_get((this_pool), tmp_value); \
184 sci_pool_put((this_pool), tmp_value); \