diff options
author | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-09-23 21:36:14 -0500 |
---|---|---|
committer | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-10-04 20:47:17 -0500 |
commit | 0296f9e86c7756e718b6b82836ce1e09b5f8d08a (patch) | |
tree | b5954c6680b243c0b1671a80ea973ef90877e462 /tests/headers/bitfield_align.h | |
parent | a900f8f863d1313ad76603234aaeea22bb9ba7b3 (diff) |
split the repo into a workspace
remove `clap` dependency :tada:
update the book installation instructions
Diffstat (limited to 'tests/headers/bitfield_align.h')
-rw-r--r-- | tests/headers/bitfield_align.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/headers/bitfield_align.h b/tests/headers/bitfield_align.h deleted file mode 100644 index 7b9527a2..00000000 --- a/tests/headers/bitfield_align.h +++ /dev/null @@ -1,49 +0,0 @@ -struct A { - unsigned char x; - unsigned b1 : 1; - unsigned b2 : 1; - unsigned b3 : 1; - unsigned b4 : 1; - unsigned b5 : 1; - unsigned b6 : 1; - unsigned b7 : 1; - unsigned b8 : 1; - unsigned b9 : 1; - unsigned b10 : 1; - unsigned char y; -}; - -struct B { - unsigned foo : 31; - unsigned char bar : 1; -}; - -struct C { - unsigned char x; - unsigned b1 : 1; - unsigned b2 : 1; - unsigned baz; -}; - -struct Date1 { - unsigned short nWeekDay : 3; // 0..7 (3 bits) - unsigned short nMonthDay : 6; // 0..31 (6 bits) - unsigned short nMonth : 5; // 0..12 (5 bits) - unsigned short nYear : 8; // 0..100 (8 bits) -}; - -struct Date2 { - unsigned short nWeekDay : 3; // 0..7 (3 bits) - unsigned short nMonthDay : 6; // 0..31 (6 bits) - unsigned short nMonth : 5; // 0..12 (5 bits) - unsigned short nYear : 8; // 0..100 (8 bits) - unsigned char byte : 8; -}; - -struct Date3 { - unsigned short nWeekDay : 3; // 0..7 (3 bits) - unsigned short nMonthDay : 6; // 0..31 (6 bits) - unsigned short nMonth : 5; // 0..12 (5 bits) - unsigned short nYear : 8; // 0..100 (8 bits) - unsigned char byte; -}; |