Lines Matching refs:indx
19 #define I2U(indx) (p->Indx2Units[indx])
117 static void InsertNode(CPpmd8 *p, void *node, unsigned indx)
120 ((CPpmd8_Node *)node)->Next = (CPpmd8_Node_Ref)p->FreeList[indx];
121 ((CPpmd8_Node *)node)->NU = I2U(indx);
122 p->FreeList[indx] = REF(node);
123 p->Stamps[indx]++;
126 static void *RemoveNode(CPpmd8 *p, unsigned indx)
128 CPpmd8_Node *node = NODE((CPpmd8_Node_Ref)p->FreeList[indx]);
129 p->FreeList[indx] = node->Next;
130 p->Stamps[indx]--;
204 static void *AllocUnitsRare(CPpmd8 *p, unsigned indx)
211 if (p->FreeList[indx] != 0)
212 return RemoveNode(p, indx);
214 i = indx;
219 UInt32 numBytes = U2B(I2U(indx));
226 SplitBlock(p, retVal, i, indx);
230 static void *AllocUnits(CPpmd8 *p, unsigned indx)
233 if (p->FreeList[indx] != 0)
234 return RemoveNode(p, indx);
235 numBytes = U2B(I2U(indx));
242 return AllocUnitsRare(p, indx);
286 unsigned indx = U2I(nu);
288 if ((Byte *)oldPtr > p->UnitsStart + 16 * 1024 || REF(oldPtr) > p->FreeList[indx])
290 ptr = RemoveNode(p, indx);
293 InsertNode(p, oldPtr, indx);
295 p->UnitsStart += U2B(I2U(indx));