GC: precalculate shiftBy
Merge pull request #1027 from rainers/precalc_shiftBy

Optimize GC: precalculate shiftBy