Use bit tricks for HB_DIRECTION_IS_* We already depend on the exact values of the direction enum in HB_DIRECTION_REVERSE(), so we may as well use that.