This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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 I use?

Thanks

Leonardo

Parents
  • Erik did only say, "probably the wrong processor"

    "you increment a U64 a few times"

    The OP was actually asking about multiplication - not just incrementing

    "Wide results do not necessarily correspond to a need for lots of MIPS or RAM"

    Not necessarily - but there must always be that suspicion...! ;-)

Reply
  • Erik did only say, "probably the wrong processor"

    "you increment a U64 a few times"

    The OP was actually asking about multiplication - not just incrementing

    "Wide results do not necessarily correspond to a need for lots of MIPS or RAM"

    Not necessarily - but there must always be that suspicion...! ;-)

Children