View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Bit manipulation


"Myrna Larson" wrote in message
...
On Mon, 14 Mar 2005 15:01:02 -0800, "Jim Thomlinson"
wrote:

AND, OR, XOR, IMP


Yes, they ARE bitwise, as are NEG, and EQV.

But as for trying to implement shifts using arithmetic, you have to be

careful
re shifting into or out of the sign bit.


Agreed, and my example was simplistic, but again it can be done.