commit | de99bba92b4beac4c347772177f47bdd61e8f376 | [log] [tgz] |
---|---|---|
author | Mark Mendell <mark.p.mendell@intel.com> | Fri Feb 14 12:15:02 2014 -0800 |
committer | Mark Mendell <mark.p.mendell@intel.com> | Fri Feb 14 12:15:02 2014 -0800 |
tree | aaae21487f77a20f58f6943c49f1ca92457d1559 | |
parent | 209a3a03595984a7a94103c3c6ba8c5afaf358a1 [diff] |
Optimize x86 long V*V by skipping imul The algorithm for long multiplication can take advantage of the fact that we are multiplying a value by itself by converting 1L*2H + 2L*1H into (2H*1L)+(2H*1L), thus converting a multiply into an addition. Change-Id: I259a25699a8787badd943318e99bafdd06587ec6 Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>