Hi,
I'm using the Keil uVision compiler.
I would like to work with 64-bit values. I declare myVar as unsigned long long;
By some calculation myVar contains a value greater than 2^32 for example 0x0000 0131 2BCE D300.
If I divide it by 2 (or 0x2, or 2L) like 'myVar/=2;' then only the lowest 32-bits are divided. So: invalid result: 0x0000 0131 95E7 6980 should be : 0x0000 0098 95E7 6980
How can a solve this?
thanks,
Henk
If the compiler can store 64-bit variables, it should also be able to divide 64-bit variables.
Indeed it should, and FAIK the only Keil compiler that even claims to support it is for ARM.