Compare coarse x to 31 in a more straightforward way.

Generates slightly larger but branchless code. Much clearer.