/external/python/cpython2/Misc/ |
pymemcompat.h | 17 PyMem_Malloc, PyMem_Realloc, PyMem_Free 38 PyMem_Malloc and free it with PyObject_Free. You may get away with 49 #define PyObject_Malloc PyMem_Malloc
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
pymem.h | 24 different heaps, and if you use PyMem_Malloc you'll get the memory from the
52 PyAPI_FUNC(void *) PyMem_Malloc(size_t);
62 #define PyMem_MALLOC _PyMem_DebugMalloc
68 /* PyMem_MALLOC(0) means malloc(1). Some systems would return NULL
74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \
94 ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
97 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
pymem.h | 24 different heaps, and if you use PyMem_Malloc you'll get the memory from the
52 PyAPI_FUNC(void *) PyMem_Malloc(size_t);
62 #define PyMem_MALLOC _PyMem_DebugMalloc
68 /* PyMem_MALLOC(0) means malloc(1). Some systems would return NULL
74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \
94 ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
97 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
|
/external/python/cpython2/Include/ |
pymem.h | 24 different heaps, and if you use PyMem_Malloc you'll get the memory from the 52 PyAPI_FUNC(void *) PyMem_Malloc(size_t); 62 #define PyMem_MALLOC _PyMem_DebugMalloc 68 /* PyMem_MALLOC(0) means malloc(1). Some systems would return NULL 74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ 94 ( (type *) PyMem_Malloc((n) * sizeof(type)) ) ) 97 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
|
/external/python/cpython3/Include/ |
pymem.h | 73 different heaps, and if you use PyMem_Malloc you'll get the memory from the 101 PyAPI_FUNC(void *) PyMem_Malloc(size_t size); 112 /* strdup() using PyMem_Malloc() */ 121 /* PyMem_MALLOC(0) means malloc(1). Some systems would return NULL 127 #define PyMem_MALLOC(n) PyMem_Malloc(n) 143 ( (type *) PyMem_Malloc((n) * sizeof(type)) ) ) 146 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) ) 172 /* PyMem_Malloc(), PyMem_Realloc() and PyMem_Free() */ 218 - PyMem_Malloc(), PyMem_Realloc(), PyMem_Free( [all...] |
/external/python/cpython3/Python/ |
pystrhex.c | 18 retbuf = (Py_UCS1*) PyMem_Malloc(arglen*2);
|
pyarena.c | 80 block *b = (block *)PyMem_Malloc(sizeof(block) + size); 130 PyArena* arena = (PyArena *)PyMem_Malloc(sizeof(PyArena));
|
pystrtod.c | 257 copy = (char *)PyMem_MALLOC(end - digits_pos + 400 dup = PyMem_Malloc(orig_len + 1); 896 buf = PyMem_Malloc(bufsize); 968 /* Convert a double d to a string, and return a PyMem_Malloc'd block of 992 Returns a PyMem_Malloc'd block of memory containing the resulting string, [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/PyEfiCompressor/ |
EfiCompressor.c | 57 SrcBuf = PyMem_Malloc(SrcDataSize);
134 SrcBuf = PyMem_Malloc(SrcDataSize);
|
/external/python/cpython2/Mac/Modules/ |
autoGIL.c | 76 p_tstate = PyMem_Malloc(sizeof(PyThreadState *));
|
/external/python/cpython3/PC/ |
_testconsole.c | 58 rec = (INPUT_RECORD*)PyMem_Malloc(sizeof(INPUT_RECORD) * size);
|
/external/python/cpython2/Modules/_multiprocessing/ |
pipe_connection.c | 70 *newbuffer = PyMem_Malloc(full_length);
|
socket_connection.c | 114 message = PyMem_Malloc(length+4); 165 *newbuffer = buffer = PyMem_Malloc((size_t)ulength);
|
/external/python/cpython2/Modules/_ctypes/ |
stgdict.c | 78 dst->format = PyMem_Malloc(strlen(src->format) + 1); 86 dst->shape = PyMem_Malloc(sizeof(Py_ssize_t) * src->ndim); 98 dst->ffi_type_pointer.elements = PyMem_Malloc(size); 523 buf = PyMem_Malloc(len + 2 + 1);
|
callproc.c | 162 void *space = PyMem_Malloc(sizeof(int) * 2); 696 pa->value.p = PyMem_Malloc(size); [all...] |
/external/python/cpython3/Modules/_ctypes/ |
stgdict.c | 93 dst->format = PyMem_Malloc(strlen(src->format) + 1); 101 dst->shape = PyMem_Malloc(sizeof(Py_ssize_t) * src->ndim); 113 dst->ffi_type_pointer.elements = PyMem_Malloc(size); 533 buf = PyMem_Malloc(len + 2 + 1);
|
/external/python/cpython3/Modules/ |
_testbuffer.c | 126 ndbuf = PyMem_Malloc(sizeof *ndbuf); 137 ndbuf->data = PyMem_Malloc(len); 553 mem = PyMem_Malloc(dest->shape[dest->ndim-1] * dest->itemsize); 708 item = PyMem_Malloc(base->itemsize); 809 fmt = PyMem_Malloc(PyBytes_GET_SIZE(tmp)+1); 892 s = PyMem_Malloc(base->ndim * (sizeof *s)); 1048 data = PyMem_Malloc(ndbuf->len + addsize); 1083 base->suboffsets = PyMem_Malloc(base->ndim * (sizeof *base->suboffsets)); [all...] |
_lsprof.c | 229 self = (ProfilerEntry*) PyMem_Malloc(sizeof(ProfilerEntry)); 270 self = (ProfilerSubEntry*) PyMem_Malloc(sizeof(ProfilerSubEntry)); 399 PyMem_Malloc(sizeof(ProfilerContext));
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
pystrtod.c | 218 copy = (char *)PyMem_MALLOC(end - digits_pos +
836 buf = PyMem_Malloc(bufsize);
908 /* Convert a double d to a string, and return a PyMem_Malloc'd block of
932 Returns a PyMem_Malloc'd block of memory containing the resulting string,
977 buf = (char *)PyMem_Malloc(bufsize); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
peephole.c | 256 unsigned int *blocks = (unsigned int *)PyMem_Malloc(len*sizeof(int));
342 codestr = (unsigned char *)PyMem_Malloc(codelen);
357 addrmap = (int *)PyMem_Malloc(codelen * sizeof(int));
|
pystrtod.c | 218 copy = (char *)PyMem_MALLOC(end - digits_pos +
836 buf = PyMem_Malloc(bufsize);
908 /* Convert a double d to a string, and return a PyMem_Malloc'd block of
932 Returns a PyMem_Malloc'd block of memory containing the resulting string,
977 buf = (char *)PyMem_Malloc(bufsize); [all...] |
/external/python/cpython2/Python/ |
pystrtod.c | 218 copy = (char *)PyMem_MALLOC(end - digits_pos + 836 buf = PyMem_Malloc(bufsize); 908 /* Convert a double d to a string, and return a PyMem_Malloc'd block of 932 Returns a PyMem_Malloc'd block of memory containing the resulting string, 977 buf = (char *)PyMem_Malloc(bufsize); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
_randommodule.c | 255 key = (unsigned long *)PyMem_Malloc(keymax * sizeof(*key));
471 bytearray = (unsigned char *)PyMem_Malloc(bytes);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
_randommodule.c | 255 key = (unsigned long *)PyMem_Malloc(keymax * sizeof(*key));
456 bytearray = (unsigned char *)PyMem_Malloc(bytes);
|
/external/python/cpython2/Modules/ |
_randommodule.c | 261 key = (unsigned long *)PyMem_Malloc(keymax * sizeof(*key)); 484 bytearray = (unsigned char *)PyMem_Malloc(bytes);
|