Post by email@example.com
"Do not cast a pointer to a FILETIME structure to either a
ULARGE_INTEGER* or __int64* value because it can cause alignment
faults on 64-bit Windows."
So Matti's 'clean' solution is no good.
You replied to a posting from 2002 without proper attribution/quoting.
1. There was no 64 bit windows in 2002. According to the Wikipedia,
the first release of a 64 bit Windows was in 2005:
2. There are no alignment faults on x86-64; they are disabled by
default. The MSDN wording is probably concerned with the Itanium.
That's a defunct processor that you probably don't have to
3. If you have alignment faults, the technique is still possible; just
ensure that the object is aligned to 64 bits. One way it will be
aligned is if it comes from malloc; there are other ways.
Regarding (2), see this StackOverflow:
TXR Programming Lanuage: http://nongnu.org/txr
Music DIY Mailing List: http://www.kylheku.com/diy
ADA MP-1 Mailing List: http://www.kylheku.com/mp1