From: Alan Barrett <barrett@daisy.ee.und.ac.za>
To: tim werner <werner@mc.ab.com>
Message Hash: ad4739d7b47e5913dcfc195b642a31255298c8324dac6fd84eccaf9058e8dc9a
Message ID: <Pine.3.89.9407031727.D196-0100000@newdaisy.ee.und.ac.za>
Reply To: <199407031505.LAA18047@sparcserver.mc.ab.com>
UTC Datetime: 1994-07-03 15:26:56 UTC
Raw Date: Sun, 3 Jul 94 08:26:56 PDT
From: Alan Barrett <barrett@daisy.ee.und.ac.za>
Date: Sun, 3 Jul 94 08:26:56 PDT
To: tim werner <werner@mc.ab.com>
Subject: Re: Dr. Dobbs Dev. Update 1/5 July 94 & Schneier
In-Reply-To: <199407031505.LAA18047@sparcserver.mc.ab.com>
Message-ID: <Pine.3.89.9407031727.D196-0100000@newdaisy.ee.und.ac.za>
MIME-Version: 1.0
Content-Type: text/plain
> >In C, {int j... if(j & (j-1)) not_exactly_one_bit; ...}
C code that does bit twiddling should almost always use unsigned
rather than signed integers, or you may get some nasty surprises on C
implementations that do not use two's complement representation for
signed integers.
--apb (Alan Barrett)
Return to July 1994
Return to “tim werner <werner@mc.ab.com>”