[net.lang.mod2] Bit-Twiddling

RMULLER@UMass.BITNET (04/17/86)

There must be a simple way ... but I can't think of it.

How does one implement shift left and shift right operations
on BITSETS?  Is there a way which doesn't involve dividing
or multiplying by 2**N?  What I want is the equivalent of
C's R >> 4; since M2 is presented as a systems programming
language, there has to be a fast elegant way to do this, right?


If it helps anyone, what I'm trying to do is use the menu-handling
routines on the Amiga, from M2 rather than C.

Thanks --

Rich Muller
Rmuller@umass.bitnet