On Fri, Mar 24, 2023 at 3:23 AM Floyd, Paul <paulf2...@gmail.com> wrote:
> > A modern and standard solution is std::byteswap. > > https://en.cppreference.com/w/cpp/numeric/byteswap > > According to this > > https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B23_library_features > > you will need llvm 14 for that. > Which doesn't help OP since they needed 12 and 13 support for existing software. Also, that's C++ only, which I don't think helps either. I'm glad to see some articulated standards here because when I did endian.h and byteswap.h, it was a minefield of what can or can't be defined in the face of existing use. Warner > A+ > > Paul > > > > >