1 #ifndef LIBNEXUS_RV_RETURN_STACK_H
2 #define LIBNEXUS_RV_RETURN_STACK_H
17 stack->entries = (uint64_t*)malloc(
sizeof(stack->entries[0]) * size);
21 stack->used = stack->end = 0;
27 stack->entries = NULL;
40 stack->entries[stack->end++] = addr;
41 stack->end %= stack->size;
42 if (stack->used < stack->size)
49 stack->end = stack->size;
50 uint64_t ret = stack->entries[--stack->end];
Definition: return-stack.h:8