Lines Matching refs:index

14     for (int index = 0; index < fUsed; ++index) {  in closestTo()  local
15 if (!between(rangeStart, fT[0][index], rangeEnd)) { in closestTo()
18 const SkDPoint& iPt = fPt[index]; in closestTo()
22 closest = index; in closestTo()
29 for (int index = 0; index < fUsed; ++index) { in flip() local
30 fT[1][index] = 1 - fT[1][index]; in flip()
40 int index; in insert() local
41 for (index = 0; index < fUsed; ++index) { in insert()
42 double oldOne = fT[0][index]; in insert()
43 double oldTwo = fT[1][index]; in insert()
54 fT[0][index] = one; in insert()
55 fT[1][index] = two; in insert()
56 fPt[index] = pt; in insert()
61 if (pt.roughlyEqual(fPt[index])) { in insert()
65 if (fT[0][index] > one) { in insert()
75 int remaining = fUsed - index; in insert()
77 memmove(&fPt[index + 1], &fPt[index], sizeof(fPt[0]) * remaining); in insert()
78 memmove(&fT[0][index + 1], &fT[0][index], sizeof(fT[0][0]) * remaining); in insert()
79 memmove(&fT[1][index + 1], &fT[1][index], sizeof(fT[1][0]) * remaining); in insert()
80 int clearMask = ~((1 << index) - 1); in insert()
84 fPt[index] = pt; in insert()
87 fT[0][index] = one; in insert()
88 fT[1][index] = two; in insert()
91 return index; in insert()
104 int index = insertSwap(one, two, pt); in insertCoincident() local
105 if (index >= 0) { in insertCoincident()
106 setCoincident(index); in insertCoincident()
108 return index; in insertCoincident()
111 void SkIntersections::setCoincident(int index) { in setCoincident() argument
112 SkASSERT(index >= 0); in setCoincident()
113 int bit = 1 << index; in setCoincident()
130 for (int index = 0; index < fUsed; ++index) { in mostOutside() local
131 if (!between(rangeStart, fT[0][index], rangeEnd)) { in mostOutside()
135 result = index; in mostOutside()
139 SkDVector test = fPt[index] - origin; in mostOutside()
141 result = index; in mostOutside()
147 void SkIntersections::removeOne(int index) { in removeOne() argument
148 int remaining = --fUsed - index; in removeOne()
152 memmove(&fPt[index], &fPt[index + 1], sizeof(fPt[0]) * remaining); in removeOne()
153 memmove(&fT[0][index], &fT[0][index + 1], sizeof(fT[0][0]) * remaining); in removeOne()
154 memmove(&fT[1][index], &fT[1][index + 1], sizeof(fT[1][0]) * remaining); in removeOne()
156 int coBit = fIsCoincident[0] & (1 << index); in removeOne()
157 fIsCoincident[0] -= ((fIsCoincident[0] >> 1) & ~((1 << index) - 1)) + coBit; in removeOne()
158 SkASSERT(!(coBit ^ (fIsCoincident[1] & (1 << index)))); in removeOne()
159 fIsCoincident[1] -= ((fIsCoincident[1] >> 1) & ~((1 << index) - 1)) + coBit; in removeOne()