Date: Fri, 24 Mar 2023 10:22:50 +0100 From: "Floyd, Paul" <paulf2718@gmail.com> To: freebsd-current@freebsd.org Subject: Re: byteswap.h not found on 12 and 13 Message-ID: <1aa553c9-79b9-30a0-e4ca-95b1057f1d80@gmail.com> In-Reply-To: <13BBF767-6CBB-41D5-AD93-6ADD9C417811@FreeBSD.org> References: <CAFDf7UKq3bMgd3XA0=U10%2BLhOCY7fZCHds9DdBcrSuNidOityw@mail.gmail.com> <CANCZdfpT3nbZ%2BzHHtdsMDa88JsWr7Frw%2BRPGcy6B=P60DZL2_g@mail.gmail.com> <CAFDf7UL=av0KDAw2O3Fmf=x5wThezBokCQ2KHtW6wOZnn43bxQ@mail.gmail.com> <ef18fee5-358b-3c19-467b-2fd980dff797@aetern.org> <CANCZdfrvHQTZqgGdZjm5Z_fa53g92c_6EHtKZpyRAsKwRsDcLw@mail.gmail.com> <CANCZdfp=zTD5ctpjcQhDBexWP40d=z0GAd09Qa9eFM4yxXq9RQ@mail.gmail.com> <CANCZdfq2nLt1Bq2Jzn=ivvqaOvF9=y8j=ChZzy6TrE5zAzeFiw@mail.gmail.com> <13BBF767-6CBB-41D5-AD93-6ADD9C417811@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. A+ Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1aa553c9-79b9-30a0-e4ca-95b1057f1d80>