Searched refs:half_range (Results 1 – 1 of 1) sorted by relevance
375 int half_range = BIT(13); in yas537_measure() local410 s[i] = xy1y2[i] - half_range; in yas537_measure()411 h[0] = (c->k * (128 * s[0] + c->a2 * s[1] + c->a3 * s[2])) / half_range; in yas537_measure()412 h[1] = (c->k * (c->a4 * s[0] + c->a5 * s[1] + c->a6 * s[2])) / half_range; in yas537_measure()413 h[2] = (c->k * (c->a7 * s[0] + c->a8 * s[1] + c->a9 * s[2])) / half_range; in yas537_measure()415 h[i] = clamp(h[i], -half_range, half_range - 1); in yas537_measure()416 xy1y2[i] = h[i] + half_range; in yas537_measure()