what is faster offsets or pointers?

Lope De Vega <[email protected]>
Newsgroups gmane.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 

-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.