Multiply numbers without using instructions MUL, IMUL, SHL, SHR, LOOP

后端 未结 4 509
误落风尘
误落风尘 2021-01-22 04:33

Is it possible to calculate result of multiplication without using instructions MUL, IMUL, SHL, SHR, LOOP, JMP in x86 assembly language?

4条回答
  •  遇见更好的自我
    2021-01-22 05:23

    Hell bent against full table lookup and logarithm, addition and exponentiation, you can still do
    table lookup of squares and subtraction: ab = (a+b)²/4 - (a-b)²/4.

提交回复
热议问题