Replace a function call and a division with one shift

Profiler showed that 44% of the time was spent in
GetWordNum() function which only does one divide.
I replaced the divide with a shift, but it will only
be valid for 64bit systems