This library provides uint7_t, uint15_t, uint31_t and uint63_t.
unsigned |
signed |
uint_mersenne |
|
|---|---|---|---|
| non-negative | ✔️ | ✔️ | |
| undefined overflow | ✔️ | ✔️ | |
| signed difference | ✔️ | ✔️ | |
| no implicit conversion from signed | ✔️ | ||
| uses all bits | ✔️ | ✔️ |
#include <uint_mersenne.h>
- Robert Edler Should I use Signed or Unsigned Ints In C? (Part 1) (Part 2)
- Scott Meyers Signed and Unsigned Types in Interfaces
- C++ reference Implicit conversions