On 4/21/07, Paul Brook <[EMAIL PROTECTED]> wrote:
>  8  mult      x*y             -- signed multiply, low 32 bits
> 12  umult     x*y             -- unsigned multiply, low 32 bits

How are these different? Under normal circumstances the low half of a multiply
result is independent of the signedness.

Yep.  You're right.  0xFFFF * 0xFFFF = 0xFFFE0001, so if you take only
the lower half, you get 1, which is what you expect regardless of the
sign.


--
Timothy Normand Miller
http://www.cse.ohio-state.edu/~millerti
Open Graphics Project
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to