Re: [hatari-devel] view the DSP stack?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On 17/02/2013 22:41, Eero Tamminen wrote:

If it's performance critical, you could just use lookup table:
	static const int ext_access_cost[8] = { ... };
	...
	dsp_core.instr_cycle += ext_access_cost[access_to_ext_memory];

Whether lookup table is faster depends on how tight loop you call it
and how many times, your host architecture cache size and prefetch etc.



Seems we came to the same answer, but I was a little slower :)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/