I am doing some calculation with increment as below.
DOUBLE result;
UINT32 data;
while(1)
{
result = data + 1;
}
But when data=0xFFFFFFFF(4 byte max value), result becomes 0 by doing above calculation.
I guess a data overflow occured.
So I wonder if there is any way I can do this calculation continuously without changing data type of ‘data’ to bigger size.