cpu detection: avoid a signed overflow