Jump to content


SSE Code question


20 replies to this topic

#21 .oisyn

    DevMaster Staff

  • Moderators
  • 1842 posts

Posted 06 November 2009 - 12:37 PM

Hmm, perhaps that random was not random enough. I enlarged it to 64 statements, and also unrolled the loops for forward and backward to make them more similar (since I figured that the whopping 2k code size of the loop itself might clobber the results as well)

I've posted it here
Results:

Quote

total forward: 3202888266
total reverse: 3261369384
total random : 4969189827

.edit: Well duh, I don't know where I got the idea from that an SSE register was a single cache line, but obviously it is only a quarter of a cache line.
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users