> If you have a full 32-bit number and you need to divide, you can simply do a multiply and take the top 32-bit half as the result.
Can someone explain how this can work? Obviously, you can't just multiply the same numbers instead of dividing.
Can someone explain how this can work? Obviously, you can't just multiply the same numbers instead of dividing.
A longer tutorial that goes into more depth: https://homepage.cs.uiowa.edu/~jones/bcd/divide.html