Tero Kontkanen

64 bit integers in C

Discussion created by Tero Kontkanen on Nov 12, 2006
Latest reply on Nov 17, 2006 by no name
I need to calculate 32*16 bit integer multiplication whete result may get longer than 32 bits. Is it possible to do 64 bit math in 56800E C compiler? In gcc type 'long long' equals 64 bit integer but is there equivalent in CW?

I also would be happy if result would saturate to 32 bits. How does saturation logic work in C? I haven't seen much documentation about it.

I'm using 56F8322 and CW 8.0.

Outcomes