MCPcopy Create free account
hub / github.com/devosoft/avida / Pop

Method Pop

avida-core/source/cpu/cCPUStack.h:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66inline int cCPUStack::Pop()
67{
68 int value = stack[stack_pointer];
69 stack[stack_pointer] = 0;
70 stack_pointer++;
71 if (stack_pointer == nHardware::STACK_SIZE) stack_pointer = 0;
72 return value;
73}
74
75inline int cCPUStack::Get(int depth) const
76{

Callers 15

cActionSetDemeIOGridMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
MakeHistogramMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestForMiniTraceMethod · 0.36