lkml.org 
[lkml]   [2005]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Touchpad problems with 2.6.11-rc2
On Wed, 02 Feb 2005 13:07:21 -0800 (PST), Peter Osterlund
<petero2@telia.com> wrote:
> + if (mousedev->pkt_count >= 2) {
> + tmp = ((fx(0) - fx(2)) * (250 * FRACTION_DENOM)) / size;
> + tmp += mousedev->frac_dx;
> + mousedev->packet.dx = tmp / FRACTION_DENOM;
> + mousedev->frac_dx = tmp - mousedev->packet.dx * FRACTION_DENOM;
> + }

What about setting scale to 256 and fractions to 128 - that should
save some cycles? Or it will be too much?

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.129 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site