what is faster offsets or pointers?

Lope De Vega <[email protected]> Tue, 23 Oct 2007 08:05:58 -0700 (PDT)
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Hello,

If having a memory block (a contigous region) so it
can also be treated as a vector, what would be faster?

  * accesing parts of such a region through
scale/base/index (offsets)

  * by using pointers.

My bet is that offsets perform better.

Regards,



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com