Home
last modified time | relevance | path

Searched refs:firstNonZero (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/core/
DSkConvolver.cpp293 int firstNonZero = 0; in AddFilter() local
294 while (firstNonZero < filterLength && filterValues[firstNonZero] == 0) { in AddFilter()
295 firstNonZero++; in AddFilter()
298 if (firstNonZero < filterLength) { in AddFilter()
305 filterOffset += firstNonZero; in AddFilter()
306 filterLength = lastNonZero + 1 - firstNonZero; in AddFilter()
309 fFilterValues.append(filterLength, &filterValues[firstNonZero]); in AddFilter()
/external/pdfium/xfa/src/fxbarcode/pdf417/
DBC_PDF417ECModulusPoly.cpp36 int32_t firstNonZero = 1; in CBC_PDF417ECModulusPoly() local
37 while (firstNonZero < coefficientsLength && in CBC_PDF417ECModulusPoly()
38 coefficients[firstNonZero] == 0) { in CBC_PDF417ECModulusPoly()
39 firstNonZero++; in CBC_PDF417ECModulusPoly()
41 if (firstNonZero == coefficientsLength) { in CBC_PDF417ECModulusPoly()
44 m_coefficients.SetSize(coefficientsLength - firstNonZero); in CBC_PDF417ECModulusPoly()
46 for (int32_t i = firstNonZero; in CBC_PDF417ECModulusPoly()
47 i < firstNonZero + m_coefficients.GetSize(); i++) { in CBC_PDF417ECModulusPoly()
/external/pdfium/xfa/src/fxbarcode/common/reedsolomon/
DBC_ReedSolomonGF256Poly.cpp47 int32_t firstNonZero = 1; in Init() local
48 while ((firstNonZero < coefficientsLength) && in Init()
49 ((*coefficients)[firstNonZero] == 0)) { in Init()
50 firstNonZero++; in Init()
52 if (firstNonZero == coefficientsLength) { in Init()
55 m_coefficients.SetSize(coefficientsLength - firstNonZero); in Init()
56 for (int32_t i = firstNonZero, j = 0; i < coefficientsLength; i++, j++) { in Init()