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. ;-)

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to