Hoist some constants to improve autovectorization.