• ARM7 printf long long int
    Hi, my program does not do the expected things, printf a unsigned long long int. #include <aduc7026.h> #include"stdio.h" void RS232_init(void); int main (void) { unsigned long long int A; RS232_init...
  • 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;...
  • convert from long to float
    Hi guys, I need to convert a 32 bit value(long) to a 32 bit float. Unfortunately there is no itof function in C and wikipedia does not give a simple solution. Casting simply does not do the conversion...
  • Float or long - which is faster?
    My manual lists float multiplication as taking 106 cycles in long, but for float it can be from 13 to 198 (with an average time of 114). It looks like the two are about equal based on the average...