Not hard to find CPU/compiler combinations with branches for `!res'. While here, make everything unsigned for good measure.