map.{cpp,h}: refactor bit arithmetics
mkmkme opened this issue · comments
It's done manually right now. Instead, write a bunch of helper functions: getBit
, setBit
, getRangeBit
, setRangeBit
, copyRangeBit
and use them accordingly. The helper functions can be found implemented in my gist.