From owner-svn-src-all@FreeBSD.ORG Wed Mar 6 23:33:02 2013 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 99FA4434; Wed, 6 Mar 2013 23:33:02 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 12BB2102; Wed, 6 Mar 2013 23:33:02 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id CAC08122D0; Thu, 7 Mar 2013 09:33:00 +1000 (EST) Received: (from dommail.onthenet.com.au [67.190.11.104]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with HTTP/1.1 id BKL73109 (AUTH peterg@ptree32.com.au); Thu, 7 Mar 2013 09:33:00 +1000 (EST) From: Peter Grehan Subject: Re: svn commit: r247871 - head/usr.sbin/bhyve To: "Colin Percival" , "David Malone" X-Mailer: Mirapoint Webmail Direct 4.2.4-GA MIME-Version: 1.0 In-Reply-To: <5137CF1D.3020506@freebsd.org> References: <201303060728.r267SKP3018477@svn.freebsd.org> <20130306231613.GA5146@walton.maths.tcd.ie> <5137CF1D.3020506@freebsd.org> Message-Id: <201303062333.042821@dommail.onthenet.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 7 Mar 2013 09:33:00 +1000 (EST) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Mar 2013 23:33:02 -0000 >On 03/06/13 15:16, David Malone wrote: >>> + /* >>> + * We're just computing (a-b) in GF(216). >> >>> + ndesc = (unsigned)*hq->hq_avail_idx - (unsigned)hq->hq_cur_aidx; >> >> I think the comment here is wrong? Subtraction (and addition) in >> GF(2^16) is just xor of 16 bit numbers. You seem to actually be >> working in Z(2^16), where subtraction is normal subtraction mod >> 65536. > >Given that there's no such thing as GF(216) due to 216 = 2^3 * 3^3 not >being a prime power, the comment is definitely wrong. ;-) Any suggestions for better wording ? I submitted the comment block unchanged from the patch. later, Peter. later, Peter.