Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262697AbVBBVbJ (ORCPT ); Wed, 2 Feb 2005 16:31:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262363AbVBBVVL (ORCPT ); Wed, 2 Feb 2005 16:21:11 -0500 Received: from rproxy.gmail.com ([64.233.170.203]:20548 "EHLO rproxy.gmail.com") by vger.kernel.org with ESMTP id S262792AbVBBVRg (ORCPT ); Wed, 2 Feb 2005 16:17:36 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=o+kyuPJuIB2nCmAvViAFrznyFytzq2BKwe474kgZn3iGxQzQFy0FxM9B+mt8rCWE95eceSj9GbN9aJ9FXu2zPoC6rtA67Vx/nsWclraHb/T5wWnLhZa8chflhXm+bVMwwxNSMATuaFK7wMoLmVDu+E6WCMj6G5IOa563YT+iBm0= Message-ID: Date: Wed, 2 Feb 2005 16:17:28 -0500 From: Dmitry Torokhov Reply-To: dtor_core@ameritech.net To: Peter Osterlund Subject: Re: Touchpad problems with 2.6.11-rc2 Cc: Pete Zaitcev , vojtech@suse.cz, linux-kernel@vger.kernel.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050123190109.3d082021@localhost.localdomain> <20050201234148.4d5eac55@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 19 On Wed, 02 Feb 2005 13:07:21 -0800 (PST), Peter Osterlund 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/