From owner-cvs-all Sun Sep 10 13:24:38 2000 Delivered-To: cvs-all@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 532ED37B422; Sun, 10 Sep 2000 13:24:35 -0700 (PDT) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id NAA24747; Sun, 10 Sep 2000 13:24:28 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200009102024.NAA24747@pike.osd.bsdi.com> Subject: Re: cvs commit: src/sys/sys ktr.h In-Reply-To: <200009101436.HAA12317@freefall.freebsd.org> from Doug Rabson at "Sep 10, 2000 07:36:55 am" To: Doug Rabson Date: Sun, 10 Sep 2000 13:24:28 -0700 (PDT) Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Rabson wrote: > dfr 2000/09/10 07:36:55 PDT > > Modified files: > sys/sys ktr.h > Log: > Use '&' instead of '%' to calculate the new value for ktr_idx. Err, it isn't guaranteed that KTR_ENTRIES will be a power of 2. If it is, gcc should be optimizing the mod to a binary and though. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message