Refactor rshift
Merge pull request #2172 from suzukaze/refactor-numeric.c

Refactor rshift