4 ms·
char *t = “VEYRONB “; uint64_t u =*(uint64_t *)t If this is done, you need to ensure your strings are stored in memory on aligned boundaries (8-byte for 64-b
by apaprocki 15y ago
char *t = “VEYRONB “;
uint64_t u =*(uint64_t *)t
If this is done, you need to ensure your strings are stored in memory on aligned boundaries (8-byte for 64-bit ints) otherwise mis-aligned data access could seriously degrade your performance.