There was a BITS data type proposed for Fortran 2008 that effectively solved the problems associated with sign-independent bit patterns. It was dropped as part of the compromise that F2008 was “too big”, but the edits for it were included in J3 file 07-007r1.pdf if you want to look at the details.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Unsigned integer data type in modern Fortran
|
4 | 2559 | May 25, 2021 | |
| Proper Way to Represent C `unsigned char`? | 32 | 2253 | October 24, 2024 | |
| How to write bytes in a binary file? | 11 | 2676 | March 1, 2021 | |
| FortCharConv Library | 3 | 503 | November 3, 2023 | |
| Bit_size and digits | 10 | 340 | May 7, 2024 |