Said module states that the compiler will inline SHIFT() if the argument
fits into a word but mc does not recognise SHIFT().
Short of explicitly adding shifts inside SYSTEM.mod, is there something
that can be done?
I had to implemented all those low level (and other) functions for our bootstrap compiler (m2bsk) and preprocessor (m2pp) from scratch without any dependencies on libraries/compilers so that it is all portable across compilers and works with both PIM and ISO compilers. If you need low level bit operations feel free to borrow what you need: