I am a newbie when it comes to C-programming and DSPs. I have been playing
around with the autocorrelation-function that comes with TI's DSPLIB. I have
made a small program to see how the autocorrelation-function works. The
program compiles without errors but I do not get the right results. Here is
DSPF_sp_autocor (r,x,nx, nr);
Is there somebody out there who can point me to a solution of the problem?
The documentation talks about double-word alignment but I haven't been able
to find out what that is?
The documentation for the function is on page 29 in this PDF:
Reply by Mark Robinson●May 31, 20052005-05-31
> The documentation talks about double-word alignment but I haven't been able
> to find out what that is?
Alignment in this case simply refers to where in memory the data is
stored. If an array is to be, say, 128bit aligned (alignment is often
specified in bits to remove ambiguity about the meaning of "word",
"dword", etc), then the address of the start of the array must be
divisible by 16.
How you specify alignment depends on the compiler you are using. TI's
compilers have a pragma, so for example:
#pragma DATA_ALIGN(foo, 128)
unsigned char foo;
would align foo on a 128 bit boundary. For memory allocated on the
heap, MEM_alloc and friends allow you to specify the alignment as a
parameter to the function.
"Let's meet the panel. You couldn't ask for four finer comedians -
so that answers your next question..."
-- Humphrey Lyttleton