This is useful for w being a 16 bit (or more) variable where you want to access bits 8...15.
An exampel is text that is presented not as a string of 8 bit characters, but as a string of 16 (32, 64...) variables where each variable contains 2 (4, 8, ...) characters.
One will have to look at the source code where the macro is used to find out why it is used (what it does at that location in the code).