Date: Wed, 6 Mar 2013 23:16:13 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Peter Grehan <grehan@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r247871 - head/usr.sbin/bhyve Message-ID: <20130306231613.GA5146@walton.maths.tcd.ie> In-Reply-To: <201303060728.r267SKP3018477@svn.freebsd.org> References: <201303060728.r267SKP3018477@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> + /* > + * 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. David.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130306231613.GA5146>