I have not read through the other discussion, but instead of a union, using memcpy to copy an 8-byte array into a uint64_t should work.
I have not read through the other discussion, but instead of a union, using memcpy to copy an 8-byte array into a uint64_t should work.