progr. |
if the conditional move instructions are not available, the operation can be done in ten instructions by using the familiar device of constructing a mask with the shift right signed 31 instruction to mask the unwanted sign propagating term (см. Hacker's delight / Henry S. Warren, Jr. – 2nd ed. 2013 ssn) |