Re: 2-dimensional DW array access without MULs?
- From: "Jim Leonard" <spamtrap@xxxxxxxxxx>
- Date: 22 Mar 2006 15:34:57 -0800
randyhyde@xxxxxxxxxxxxx wrote:
Well, the *original* way people used to do this for 2-D arrays (in
assembly and HLLs like C) was to create a table of pointers that point
at the beginning of each row in the array. Fetch the pointer with the
leftmost index (assuming row-major ordering) and then add the second
index to this base address.
That is what I ended up discovering to be the fastest solution for my
particular situation.
.
- References:
- 2-dimensional DW array access without MULs?
- From: Jim Leonard
- Re: 2-dimensional DW array access without MULs?
- From: randyhyde@xxxxxxxxxxxxx
- 2-dimensional DW array access without MULs?
- Prev by Date: Re: 2-dimensional DW array access without MULs?
- Next by Date: Re: ld dynamic linker x86-64 ?!
- Previous by thread: Re: 2-dimensional DW array access without MULs?
- Next by thread: Recommendations for Self-Instruction?
- Index(es):
Relevant Pages
|