I have found it very convenient to read TSCL and TSCH and put them into a 64-bit variable using the _itoll intrinsic. But I would like to know if an implied read order is a sure thing or not.
The prototype for _itoll is
long long _itoll (unsigned src2, unsigned src1);
This implies to me that src1 will be read first and then src2. Is that the defined behavior of this intrinsic?
My experimentation has found that with either Debug or Release configurations, I get that order. It allows me to use
long long llTime = _itoll ( TSCH, TSCL );
and I get the right order of reads. If they read in the opposite order then I can get an incorrect value in TSCH. So that is why I am asking if this is defined and assured behavior.
Regards,
RandyP