What are the (mathematical) restrictions of a TMS320C6713 DSP?

I have a function that computes the sum of even numbers in a Fibonacci sequence less than a boundary.

Should I be worried about this calculation? Can the TMS320C6713 handle it?

When I run the following code on Visual Studio on my 64-bit computer with a value of 4294967295 (232 -1), it returns 4611685999100035072.

unsigned long long int sum = 0;
unsigned int f_n0 = 0;
unsigned int f_n1 = 1;
unsigned long long int f_n2 = 0;

unsigned long long int list_fibonacci(unsigned long long int boundary)
{
while ((f_n2 = f_n0 + f_n1) < boundary)
{
if (f_n2 % 2 == 0)
sum += f_n2;
f_n0 = f_n1;
f_n1 = f_n2;
}
return sum;
}


Thank you.

• What exactly are you worried about here? I'm no DSP expert, but that DSP seems fairly capable of doing math really quickly. Do you have a time constraint? Or are you just concerned about whether or not the hardware can do it? – Brendan Simpson Mar 31 '16 at 20:07
• @BrendanSimpson It's the hardware. It's my first time working with a DSP. – massakrienen Mar 31 '16 at 21:31