Lines Matching full:malloc
2 Code that allows a user to dictate what malloc() PETSc uses.
8 #include <malloc.h>
47 else *result = malloc(mem); in PetscMallocAlign()
59 malloc space for two extra chunks and shift ptr 1 + enough to get it PetscScalar aligned in PetscMallocAlign()
64 ptr = (int *)malloc(mem + 2 * PETSC_MEMALIGN); in PetscMallocAlign()
89 the original address provided by the system malloc(). in PetscFreeAlign()
123 the original address provided by the system malloc(). in PetscReallocAlign()
137 malloc space for two extra chunks and shift ptr 1 + enough to get it PetscScalar aligned in PetscReallocAlign()
155 * realloc and, if the alignment is wrong, malloc/copy/free. */ in PetscReallocAlign()
201 + imalloc - the routine that provides the `malloc()` implementation (also provides `calloc()`, whic…
232 In general one should never run a PETSc program with different `malloc()` and
272 current malloc and free routines to the `PetscMallocAlign()` and
338 . coalesce - `PETSC_TRUE` to use coalesced malloc for multi-memory allocation.
362 …llocA - Allocate and optionally clear one or more memory locations, possibly using coalesced malloc