pattern3s: Add support for pattern table smaller than the hash range