Subject: Re: 2s complement
To: None <tech-kern@NetBSD.org>
From: Chapman Flack <firstname.lastname@example.org>
Date: 01/06/2006 20:52:25
Rui Paulo wrote:
> On 2006.01.06 14:06:54 -0500, Chapman Flack wrote:
> | Are there any current or contemplated NetBSD ports to
> | non-2s-complement machines?
> No, I don't think so.
ok ... I wondered because I wasn't sure why bit_ffs in bitstring(3) is
done with a per-bit for loop, and thought maybe it meant 2s complement
techniques would be making too much of an architecture assumption.
Does anyone know of a reason not to use x^(x-1) in NetBSD code?