Convert Little Endian to Big Endian

OP’s sample code is incorrect. Endian conversion works at the bit and 8-bit byte level. Most endian issues deal with the byte level. OP code is doing a endian change at the 4-bit nibble level. Recommend instead: If performance is truly important, the particular processor would need to be known. Otherwise, leave it to the … Read more

tech