3 ms·
I wonder if those macros work with middle-endian systems.
by pabs3 6y ago
I wonder if those macros work with middle-endian systems.
- dataflow 6y agoIs this a joke or am I just unaware of any systems out there that are "middle-endian"..?!
- hvdijk 6y agoThere are no current middle-endian systems but they used to exist. The PDP-11 is the most famous one. The macros would work on all systems, but as only very old systems are middle-endian, they also have old compilers so may not be able to optimise it as well.
- mannschott 6y agoSadly not a joke, but thankfully quite obscure: https://en.wikipedia.org/wiki/Endianness#Middle-endian https://en.wikipedia.org/wiki/Endianness#Middle-endian
- froh 6y agono. but hton(3)/ntoh(3) from inet.h do.