<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 15 Jun 2005 17:01:22 +0100
From   : Richard_Talbot-Watkins@...
Subject: Re: Faster 6502 multiplication

Carlo writes:

> This descends from the fact that a*b is *always* an integer,
> so for the above relationship to hold the right side of the
> equation *must* also be an integer value. From this descends
> that (a+b)^2 - (a-b)^2 is always a multiple of 4.

*bangs forehead against desk*

D'oh, I should've considered that more closely before my last reply.

Of course, since it's a multiple of 4, the bottom two bits will always be
zero.  Which means the bottom two bits of (a+b)^2 and (a-b)^2 have to be
equal.  So we can discard them straight away as we are not expecting
anything other than a result of 00 from them.

Cheers Carlo!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
postmaster@...

This footnote also confirms that this email message has been checked
for all known viruses.

**********************************************************************
Sony Computer Entertainment Europe
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>