bit shifting

Allen Wirfs-Brock Allen_Wirfs-Brock at Instantiations.com
Thu Apr 23 17:01:59 UTC 1998


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.

ANSI Smalltalk also specifies:
#allMask:
#anyMask:
#noMask:
	"check if all, any, or no masked bits are set, return <boolean>"

#highBit	"bit index of most significant set bit, 0 if none"

#bitAt:
#bitAt:put:
	"access or set an individual bit"

Allen_Wirfs-Brock at Instantiations.com





More information about the Squeak-dev mailing list