Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

bruxisma/byteswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WG21 P1272 -- Byteswap Implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages