4 ms·
Can't we just declare __alignof__(uint32_t) on the 'char b[4]' and then freely use bswap without all this madness? Or memcpy the chars into a uint32 array? htt
by jowea 2y ago
Can't we just declare __alignof__(uint32_t) on the 'char b[4]' and then freely use bswap without all this madness? Or memcpy the chars into a uint32 array?
https://gcc.gnu.org/onlinedocs/gcc/Alignment.html https://gcc.gnu.org/onlinedocs/gcc/Alignment.html