Lines Matching refs:indx
17 #define I2U(indx) (p->Indx2Units[indx])
118 static void InsertNode(CPpmd7 *p, void *node, unsigned indx)
120 *((CPpmd_Void_Ref *)node) = p->FreeList[indx];
121 p->FreeList[indx] = REF(node);
124 static void *RemoveNode(CPpmd7 *p, unsigned indx)
126 CPpmd_Void_Ref *node = (CPpmd_Void_Ref *)Ppmd7_GetPtr(p, p->FreeList[indx]);
127 p->FreeList[indx] = *node;
215 static void *AllocUnitsRare(CPpmd7 *p, unsigned indx)
222 if (p->FreeList[indx] != 0)
223 return RemoveNode(p, indx);
225 i = indx;
230 UInt32 numBytes = U2B(I2U(indx));
237 SplitBlock(p, retVal, i, indx);
241 static void *AllocUnits(CPpmd7 *p, unsigned indx)
244 if (p->FreeList[indx] != 0)
245 return RemoveNode(p, indx);
246 numBytes = U2B(I2U(indx));
253 return AllocUnitsRare(p, indx);