Re: 2-dimensional DW array access without MULs?
- From: "Jim Leonard" <spamtrap@xxxxxxxxxx>
- Date: 20 Mar 2006 18:36:14 -0800
robertwessel2@xxxxxxxxx wrote:
Jim Leonard wrote:
If the accesses are not purely random, there are often opportunities to
reduce the index calculations to simple adds to get to the next
element. A classic example is a dot-product loop where you'd be doing
something like:
for (i=0; i<n; i++)
s+=a[r][i]*b[i][c]; //where r and c are invariant for the loop
The stepping through those two arrays should reduce to a simple add
each (one the size of an element, the other the size of a row).
This gives me a lot to think about, thanks.
.
- References:
- 2-dimensional DW array access without MULs?
- From: Jim Leonard
- Re: 2-dimensional DW array access without MULs?
- From: robertwessel2@xxxxxxxxx
- 2-dimensional DW array access without MULs?
- Prev by Date: Re: 2-dimensional DW array access without MULs?
- Next by Date: Re: LSS and MOV SS
- Previous by thread: Re: 2-dimensional DW array access without MULs?
- Next by thread: Re: 2-dimensional DW array access without MULs?
- Index(es):