Y
Hacker News
new
|
ask
|
show
|
jobs
by
userbinator
4191 days ago
The simplest way to implement that would be two SETxx instructions and a subtract on 386+, SLT/SGT on MIPS, two subtracts (or one compare and one subtract) and two predicated moves on ARM. No branching required at all.