1994-07-03 - Re: Dr. Dobbs Dev. Update 1/5 July 94 & Schneier

Header Data

From: norm@netcom.com (Norman Hardy)
To: tim werner <cypherpunks@toad.com
Message Hash: 272233d6775daf6e58fd482bfaaa63e7c8c3bed9cb374c3828d7f479e9b7a68d
Message ID: <199407030824.BAA24447@netcom.netcom.com>
Reply To: N/A
UTC Datetime: 1994-07-03 08:24:40 UTC
Raw Date: Sun, 3 Jul 94 01:24:40 PDT

Raw message

From: norm@netcom.com (Norman Hardy)
Date: Sun, 3 Jul 94 01:24:40 PDT
To: tim werner <cypherpunks@toad.com
Subject: Re: Dr. Dobbs Dev. Update 1/5 July 94 & Schneier
Message-ID: <199407030824.BAA24447@netcom.netcom.com>
MIME-Version: 1.0
Content-Type: text/plain


At 01:00 1994/07/03 -0400, tim werner wrote:
>This instruction would be useful in all sorts of applications.  I was just
>wishing I had such a thing only last week.  I had to write a little loop to
>check the number of bits set in a word.  Each bit represented an action,
>and in my particular case it was an error if more than 1 action was
>requested.  The loop was really a waste when you consider that it could
>have been done in 1 instruction.
>
>tw
In C, {int j... if(j & (j-1)) not_exactly_one_bit; ...}







Thread