Click here to Skip to main content
15,890,690 members
Articles / Programming Languages / C++14

bits.hpp: A Header File with Some Goodies for Doing Manipulation of Bits and Words

Rate me:
Please Sign up or sign in to vote.
4.53/5 (4 votes)
18 May 2021MIT3 min read 4.4K   92   11  
Easily shift bits in memory of arbitrary length, declare integer sizes programmatically, endian conversion, and more
This is a header file I use in my GFX library to handle all the "bit twiddling" as well as some basic utilities for dealing with machine words in the form of uint32_t, int64_t, and the like.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions