Hello. I need to hold 64-bit timer value. I store the 32-bit hardware timer value in one variable (low DWORD) and use an additional uint32_t variable as a an upper part of 64-bit timer value (high DWORD).
So, I have a 64-bit unsigned integer stored in 2 32-bit consecutive variables. All works ok, but it is inconvenient to use this construction in calculations (adding, sub and so on).
The questions:
-
is nRF51822 supports 64 bit arithmetic?
-
I obtained a strange result when try to use unsigned long long - program is compiled and simple operations (add, sub) is seems to ok, but when I try it in comlex application - it's fault.
-
If nRF51822 don't support a native 64 bit arithmetic, can you recomend some C library to emulate working with those long numbers.
I use a gcc ARM compliler. Chip revision: nRF51822 QFAAG0.
Thanks.