MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __AXRemoveFromStack

Function __AXRemoveFromStack

src/dolphin/src/ax/AXAlloc.c:88–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void __AXRemoveFromStack(AXVPB* p)
89{
90 u32 i;
91 AXVPB* head;
92 AXVPB* tail;
93
94 i = p->priority;
95 head = __AXStackHead[i];
96 tail = __AXStackTail[i];
97 if (head == tail)
98 {
99 __AXStackHead[i] = __AXStackTail[i] = 0;
100 return;
101 }
102 if (p == head)
103 {
104 __AXStackHead[i] = p->next;
105 __AXStackHead[i]->prev = 0;
106 return;
107 }
108 if (p == tail)
109 {
110 __AXStackTail[i] = p->prev;
111 __AXStackTail[i]->next = 0;
112 return;
113 }
114 head = p->prev;
115 tail = p->next;
116 head->next = tail;
117 tail->prev = head;
118}
119
120void AXFreeVoice(AXVPB* p)
121{

Callers 2

__AXServiceCallbackStackFunction · 0.85
AXFreeVoiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected