bit shifting

Wim Boot wimb at bart.nl
Sun Apr 26 18:28:18 UTC 1998


Allen Wirfs-Brock wrote:

>At 04:55 PM 4/23/98 GMT, Wim Boot wrote:
>>Can we have #bitNot (or #bitInvert) as well? Please...
>
>#bitXor: does this if the argument is a mask of all ones.

But how do I get a mask with as many ones as there are
zeros in for instance 0? I would expect "0 bitInvert" to
produce just such a mask...
And there is such a simple, sensible solution. I'm happy
to see Squeak is going to adopt that now, so this will be
my last comment on the topic in this forum.

Wim Boot





More information about the Squeak-dev mailing list