static uint64 UNALIGNED_LOAD64(const char *p) {
uint64 result;
memcpy(&result, p, sizeof(result));
return result;
}
why not
memcpy(&result, &p, sizeof(result));
memcpy(&result, p, sizeof(result) only copy character values cutted 64 bit from p.
memcpy(&result, &p, sizeof(result)); really copy the address 64bit value to result.
is realy right?