Home
last modified time | relevance | path

Searched refs:newlink (Results 1 – 1 of 1) sorted by relevance

/petsc/src/sys/utils/
H A Dsegbuffer.c25 struct _PetscSegBufferLink *newlink, *s; in PetscSegBufferAlloc_Private() local
31 …PetscCall(PetscMalloc(offsetof(struct _PetscSegBufferLink, u) + alloc * seg->unitbytes, &newlink)); in PetscSegBufferAlloc_Private()
32 PetscCall(PetscMemzero(newlink, offsetof(struct _PetscSegBufferLink, u))); in PetscSegBufferAlloc_Private()
34 newlink->tailused = s->used + s->tailused; in PetscSegBufferAlloc_Private()
35 newlink->tail = s; in PetscSegBufferAlloc_Private()
36 newlink->alloc = alloc; in PetscSegBufferAlloc_Private()
37 seg->head = newlink; in PetscSegBufferAlloc_Private()