• Arithmetic Calculate (64 bits)
    How can I multiply 2 data that result in a 64 bit value? For example: unsigned long a = 4000000000, c; unsigned int b = 60000; c = a * b; //this have a problem!!! Has any library that can...
  • Arithmetic Calculate (64 bits)
    How can I multiply 2 data that result in a 64 bit value? For example: unsigned long a = 4000000000, c; unsigned int b = 60000; c = a * b; //this have a problem!!! Has any library that can...
  • Arithmetic on numbers larger than 32 bits
    I need to add a 32-bit number to a 48-bit number. What I want to do is perform the first 32 bit arithmetic in C as follows: Wv.A += Wv.B ; And to propagate the carry to the most significant word as...
  • A51 only allows 16 bit arithmetic - Help!!
    Hi, I have the following code #define FT_RESOLUTION_NS 240 #define US_2_FT_TICKS(x) (((x) * 1000)/FT_RESOLUTION_NS) values calculated with US_2_FT_TICKS where the x * 1000 bit overflows 16...
  • Arithmetic on numbers larger than 32 bits
    I need to add a 32-bit number to a 48-bit number. What I want to do is perform the first 32 bit arithmetic in C as follows: Wv.A += Wv.B ; And to propagate the carry to the most significant word as...