I have several cases where an array of S16 values needs to be copied. Usually memcpy would be the choice for large arrays. However, the array size can vary (within the method) from 1 to 12 with most times being 2 values. So my question, is it better to use memcpy and take the cost of a subroutine call or just do a loop, setting some pointers and running a for loop?
Right now, I'm using 3.3.67 CCS with 6.1.10 tools on a 6455 processor. I should be upgrading to the latest CCS soon. Also (as part of the upgrade) I will need to support the 6678 processor.
-- dave