x86: Move range related operation to one file