j***@usm.edu
2019-05-11 17:55:04 UTC
Hello
I apologize if this is a boneheaded question, but what is the best way to mask an integer's bits in Oberon-07?
As I understand it, one way is to convert the integer to a SET and multiply . This conversion, however, requires use of the SYSTEM module. I'm trying to avoid that.
Another way is to use LSL and ASR to isolate bits, but that seems wasteful.
Is there some other way I'm missing?
thanks in advance
john perry
I apologize if this is a boneheaded question, but what is the best way to mask an integer's bits in Oberon-07?
As I understand it, one way is to convert the integer to a SET and multiply . This conversion, however, requires use of the SYSTEM module. I'm trying to avoid that.
Another way is to use LSL and ASR to isolate bits, but that seems wasteful.
Is there some other way I'm missing?
thanks in advance
john perry