• long long int for floating average computation
    I want to compute a floating average of third order. Just take a look at my code: void IRQ_Handler()__irq __ram { static long long unsigned int ACC1,ACC2,ACC3,ACC3D; static long long unsigned...
  • long int division
    I need a 100% accurate division of any tow 32 bit numbers. So I am using the following code and the (/) operator. However I notice that results are not accurate when the Den (denominator) is shorter...
  • compose a Long of two Ints
    Hello Forum, I want to compose two int variables, which contains the LSW and MSW, respective, into one unsigned long variable. The following code does the right thing: int lo, hi; unsigned long longvar;...
  • Arm7 long multiply in C
    Hallo to everyone. My problem is to have the upper 4 Byte result of a multiply. For example: unsigned int a=1000000000;//only example value unsigned int b=10000000000; unsigned int c; ...
  • printf repairs corrupted long long arithmetic
    take a look to my programm: When counting how often a unsigned long long integer could be divided by ten, i got strange results. Then i realised, a printf function call repairs the fault. Who can explain...