Lines Matching refs:existing
40 #define EXPN_UP( existing, needed ) \ argument
41 needed > existing ? (needed<<1) : existing
44 #define EXPN_DOWN( existing, needed ) \ argument
45 needed < (existing>>2) ? (needed<<1) : existing
48 #define LIN_UP( existing, needed ) \ argument
49 needed > existing ? (needed+step) : existing
52 #define LIN_DOWN( existing, needed ) \ argument
53 needed < (existing-(step<<1)) ? (needed+step) : existing
56 #define CONST_UP( existing, needed ) existing argument
59 #define CONST_DOWN( existing, needed ) existing argument
104 inline long upResize( long existing, long needed ) in upResize() argument
105 { return LIN_UP(existing, needed); } in upResize()
113 inline long downResize( long existing, long needed ) in downResize() argument
114 { return LIN_DOWN(existing, needed); } in downResize()
163 inline long upResize( long existing, long needed ) in upResize() argument
164 { return LIN_UP(existing, needed); } in upResize()
172 inline long downResize( long existing, long needed ) in downResize() argument
173 { return LIN_DOWN(existing, needed); } in downResize()
197 static inline long upResize( long existing, long needed );
204 static inline long downResize( long existing, long needed ) in downResize() argument
205 { return CONST_DOWN(existing, needed); } in downResize()
214 inline long ResizeConst::upResize( long existing, long needed ) in upResize() argument
216 assert( needed <= existing ); in upResize()
217 return CONST_UP(existing, needed); in upResize()
260 inline long upResize( long existing, long needed );
261 inline long downResize( long existing, long needed );
298 inline long ResizeRunTime::upResize( long existing, long needed ) in upResize() argument
302 return EXPN_UP(existing, needed); in upResize()
304 return LIN_UP(existing, needed); in upResize()
306 assert( needed <= existing ); in upResize()
307 return CONST_UP(existing, needed); in upResize()
319 inline long ResizeRunTime::downResize( long existing, long needed ) in downResize() argument
323 return EXPN_DOWN(existing, needed); in downResize()
325 return LIN_DOWN(existing, needed); in downResize()
327 return CONST_DOWN(existing, needed); in downResize()