Bit counting

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Jan 17 02:00:21 AEST 1989


In article <7825 at boring.cwi.nl> aeb at cwi.nl (Andries Brouwer) writes:
>			a &= (a-1);

Such algorithms should use unsigned integers, to avoid possible
overflow problems on certain bit patterns.



More information about the Comp.unix.questions mailing list