Skip to content
WG21 P1272 -- Byteswap Implementation
C++
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include/ixm
LICENSE.md
README.md
proposal.bs

README.md

Overview

This is a draft proposal for adding a std::byteswap function to the C++ standard library. This repository features the proposal and a working C++17 implementation for GCC/Clang/MSVC. On all platforms, it will insert a bswap instruction via a compiler intrinsic if called in a non-constexpr context, and will perform a constexpr byteswap otherwise.

The proposal is still in draft mode and will be updated with proper wording over time.

This implementation is released under an MIT License.

You can’t perform that action at this time.