Home
last modified time | relevance | path

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

/external/chromium_org/v8/src/
Dfixed-dtoa.cc275 int first_non_zero = 0; in TrimZeros() local
276 while (first_non_zero < *length && buffer[first_non_zero] == '0') { in TrimZeros()
277 first_non_zero++; in TrimZeros()
279 if (first_non_zero != 0) { in TrimZeros()
280 for (int i = first_non_zero; i < *length; ++i) { in TrimZeros()
281 buffer[i - first_non_zero] = buffer[i]; in TrimZeros()
283 *length -= first_non_zero; in TrimZeros()
284 *decimal_point -= first_non_zero; in TrimZeros()
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/
Dfixed-dtoa.cc297 int first_non_zero = 0; in TrimZeros() local
298 while (first_non_zero < *length && buffer[first_non_zero] == '0') { in TrimZeros()
299 first_non_zero++; in TrimZeros()
301 if (first_non_zero != 0) { in TrimZeros()
302 for (int i = first_non_zero; i < *length; ++i) { in TrimZeros()
303 buffer[i - first_non_zero] = buffer[i]; in TrimZeros()
305 *length -= first_non_zero; in TrimZeros()
306 *decimal_point -= first_non_zero; in TrimZeros()
/external/chromium_org/skia/ext/
Dconvolver.cc289 int first_non_zero = 0; in AddFilter() local
290 while (first_non_zero < filter_length && filter_values[first_non_zero] == 0) in AddFilter()
291 first_non_zero++; in AddFilter()
293 if (first_non_zero < filter_length) { in AddFilter()
299 filter_offset += first_non_zero; in AddFilter()
300 filter_length = last_non_zero + 1 - first_non_zero; in AddFilter()
303 for (int i = first_non_zero; i <= last_non_zero; i++) in AddFilter()