• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 364 365 366 367 368 Next »

PPCAnalyst Info
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
PPCAnalyst Info
06-11-2009, 08:39 AM
#1
devilsclaw
Unregistered
 
Im not sure where to post this info and currently pretty sure that I would not be a trusted commiter to the svn since I never have here.

I was looking at some of the JIT stuff and notices a comment on why something did what it did.

PPCAnalyst.cpp line 395: num_inst++; // why?

the reason for this questions is most likely do to the fact that the loop already increments num_inst++
line 308: for (int i = 0; i < maxsize; i++, num_inst++)

as one can tell its starting at 0 since its for processing

the extra num_inst++ after the loop is to return the number of bytes processed so it would have to be incremented to start from 1 instead of 0.

You can tell this by the end of the function where it does this.
line 544: *realsize = num_inst;

also there is no reason to do it at the end of the function since currently it only ever returns true, but good to keep there in case anyone ever adds some sort of error checking and returns false.
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode