Lines Matching refs:mem

1188       mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1200 the malloc code, but "mem" is the pointer that is returned to the
1203 Chunks always begin on even word boundaries, so the mem portion
1213 mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1302 /* Convert a chunk address to a user mem pointer without correcting
1306 /* Convert a chunk address to a user mem pointer and extract the right tag. */
1309 /* Convert a user mem pointer to a chunk address and extract the right tag. */
1310 #define mem2chunk(mem) ((mchunkptr)tag_at (((char*)(mem) - CHUNK_HDR_SZ)))
2115 /* mem is aligned */
3050 uintptr_t mem = (uintptr_t) chunk2mem (p);
3059 || __glibc_unlikely (!powerof2 (mem & (pagesize - 1))))
3084 uintptr_t mem = (uintptr_t) chunk2mem(p);
3087 || __glibc_unlikely (!powerof2 (mem & (pagesize - 1))))
3351 __libc_free (void *mem)
3354 mchunkptr p; /* chunk corresponding to mem */
3356 if (mem == 0) /* free(0) has no effect */
3362 *(volatile char *)mem;
3366 p = mem2chunk (mem);
3628 void *mem;
3679 mem = _int_malloc (av, sz);
3681 assert (!mem || chunk_is_mmapped (mem2chunk (mem)) ||
3682 av == arena_for_chunk (mem2chunk (mem)));
3686 if (mem == 0 && av != NULL)
3690 mem = _int_malloc (av, sz);
3698 if (mem == 0)
3701 mchunkptr p = mem2chunk (mem);
3707 return tag_new_zero_region (mem, memsize (p));
3715 return memset (mem, 0, sz);
3717 return mem;
3731 d = (INTERNAL_SIZE_T *) mem;
3761 return mem;
4821 void* newmem; /* corresponding user mem */
5123 musable (void *mem)
5125 mchunkptr p = mem2chunk (mem);
5676 void *mem;
5690 mem = _mid_memalign (alignment, size, address);
5692 if (mem != NULL)
5694 *memptr = mem;