181{
182 void* old_addr = cell->addr;
183 unsigned long old_spec = cell->spec;
184 omBin old_bin = cell->bin;
185 omBin old_orig_bin = cell->orig_bin;
186 size_t old_size =
GET_SIZE(old_spec);
187 void* new_addr;
190 size_t new_size =
GET_SIZE(new_spec);
192 size_t min_size;
193
195
198 {
200 {
203 else
205 }
206 else
207 {
210 else
212 }
213
215 {
216 new_orig_bin = new_bin;
218 }
219
221 {
223 else new_addr =
omReallocBin(old_addr, old_bin, new_bin);
224 }
225 else
226 {
229 }
230 }
231 else
232 {
234 {
236 {
238 {
240 {
243 else
245 }
246 else
248 }
249 else
250 {
252 {
255 else
257 }
259 }
260 }
261 else
262 {
264 {
267 }
268 else
269 {
272 }
273 }
274 }
275 else
276 {
278 {
280 {
282 {
285 else
287 }
288 else new_addr =
omRealloc0(old_addr, new_size);
289 }
290 else
291 {
293 {
295 new_addr =
omrealloc(old_addr, new_size);
296 else
298 }
299 else new_addr =
omRealloc(old_addr, new_size);
300 }
301 }
302 else
303 {
305 {
308 }
309 else
310 {
313 }
314 }
315 }
316 }
317
319 {
320 if (old_orig_bin !=
NULL)
322 else
324 }
325
327 old_size = real_old_size;
328 min_size = (new_size < old_size ? new_size : old_size);
329
332 else
333 {
335 if (
IS_ZERO(new_spec) && old_size < new_size)
337 }
338
339 cell->addr = new_addr;
340 cell->spec = new_spec;
341 cell->bin = new_bin;
342 cell->orig_bin = new_orig_bin;
345}
#define omrealloc(addr, size)
#define omTypeReallocAlignedSize
#define omTypeRealloc0(o_addr, type, addr, size)
#define omTypeRealloc0Size(o_addr, o_size, type, addr, size)
#define omRealloc0AlignedSize
#define omrealloc0Size(addr, o_size, size)
#define omRealloc0Aligned
#define omreallocSize(addr, o_size, size)
#define omReallocSize(addr, o_size, size)
#define omTypeRealloc0AlignedSize
#define omrealloc0(addr, size)
#define omRealloc0Bin(o_addr, o_bin, bin)
#define omTypeRealloc0Bin(o_addr, o_bin, type, addr, bin)
#define omRealloc(addr, size)
#define omReallocAlignedSize
#define omTypeRealloc0Aligned
#define omReallocBin(o_addr, o_bin, bin)
#define omRealloc0Size(addr, o_size, size)
#define omTypeReallocAligned
#define omRealloc0(addr, size)
#define omTypeReallocSize(o_addr, o_size, type, addr, size)
#define omTypeReallocBin(o_addr, o_bin, type, addr, bin)
#define omTypeRealloc(o_addr, type, addr, size)
void TestAddrContent(void *addr, unsigned long value, size_t size)