Content deleted Content added
found a way Tags: Mobile edit Mobile web edit Advanced mobile edit |
→Bit manipulation operations: add shift reverse etc. mention |
||
Line 66:
Multiply by 9 for example, is copy operand, shift up by 3 (multiply by 8), and add to original operand.
* reduce division by constant to sequence of shift-subtract
Bit-reversing, byte-reversing, and the various forms of rotation, can all be costly in terms of the number of instructions needed. Shifting has variants including Arithmetic shift, Logical shift and Rotate.
Unusual instructions include [[Binary-coded decimal#Packed BCD|Packed BCD]] which are very common in the financial, commercial and industrial industries.
|