Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcondiro authored Aug 24, 2024
1 parent 728a3b3 commit 8349d95
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# c_bitfields_integer_promotion
Little experiment to check how integer promotion affects bitfields

The interest in this came after the discussion at https://lore.kernel.org/all/[email protected]/t/#u

## A bunch of related links

https://gcc.gnu.org/onlinedocs/gcc/Structures-unions-enumerations-and-bit-fields-implementation.html

https://stackoverflow.com/questions/2647320/struct-bitfield-max-size-c99-c

https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#Bit-Fields

https://archive.org/details/the-ansi-c-programming-language-by-brian-w.-kernighan-dennis-m.-ritchie.org/page/132/mode/2up

https://stackoverflow.com/questions/32529080/should-bit-fields-less-than-int-in-size-be-the-subject-of-integral-promotion

https://stackoverflow.com/questions/46073295/implicit-type-promotion-rules

0 comments on commit 8349d95

Please sign in to comment.