Lines Matching defs:smooth
213 int smooth[ATP_SMOOTHSIZE];
391 memset(dev->smooth, 0, 4 * sizeof(dev->smooth[0]));
394 dev->smooth[i + 4] = xy_sensors[i] << ATP_SCALE;
395 memset(&dev->smooth[nb_sensors + 4], 0, 4 * sizeof(dev->smooth[0]));
399 dev->smooth_tmp[0] = (dev->smooth[0] + dev->smooth[1]) / 2;
403 dev->smooth_tmp[i] = (dev->smooth[i - 1] +
404 dev->smooth[i] * 2 +
405 dev->smooth[i + 1]) / 4;
408 dev->smooth_tmp[i] = (dev->smooth[i - 1] + dev->smooth[i]) / 2;
410 memcpy(dev->smooth, dev->smooth_tmp, sizeof(dev->smooth));
418 if ((dev->smooth[i] >> ATP_SCALE) > 0) {
419 pcum += dev->smooth[i] * i;
420 psum += dev->smooth[i];