Clean up HiPE prologue emission a bit and avoid signed arithmetic tricks.

No intended functionality change.