This is a minor clean-up. Additionally, explicitly check for a valid nmaskwords.
Unit Tests Skipped
Remove the nmw_power2 variable altogether. It was introduced only to simplify the expression for valid_gnu_hash.
The comment about 'power of 2' should be moved to valid_gnu_hash and updated.