StackOverflow Questions for Tag: bit-fields

lazba
lazba

Reputation: 171

Why do MCU libraries use logic operations instead of bitfield structs?

Score: 2

Views: 92

Answers: 1

Read More
Anton
Anton

Reputation: 93

Clarification - Struct Bitfield memory layout

Score: 3

Views: 125

Answers: 1

Read More
bdmt
bdmt

Reputation: 21

Struct is padded to 8 bytes when 6 bytes seem sufficient

Score: 2

Views: 349

Answers: 2

Read More
Vorac
Vorac

Reputation: 9124

Default values to bitfield elements

Score: 12

Views: 8650

Answers: 4

Read More
Max Sedlusch
Max Sedlusch

Reputation: 115

why is casting from an unsigned int to a struct that consists of bitfields making up an unsigned int not allowed?

Score: 1

Views: 83

Answers: 1

Read More
BananaBuisness
BananaBuisness

Reputation: 369

Is it possible to cast one type of bitfield to another type of bitfield with the same total number of bits?

Score: 5

Views: 1245

Answers: 4

Read More
CodeGeneratorMKM
CodeGeneratorMKM

Reputation: 33

How is memory allocated in my union of double and bit-fields struct?

Score: 2

Views: 101

Answers: 1

Read More
Mike Vine
Mike Vine

Reputation: 9837

Standard layout unions with common initial sequence to create checked-bitfields as drop in replacements for bitfields?

Score: 0

Views: 95

Answers: 1

Read More
OC87
OC87

Reputation: 41

SIMD unpack 12-bit fields to 16-bit

Score: 4

Views: 1815

Answers: 1

Read More
UBA
UBA

Reputation: 81

structure size difference on windows 64bit with bit fields when compiled with msvc

Score: 0

Views: 16

Answers: 0

Read More
Steeve007
Steeve007

Reputation: 83

Mixing different types in bit-fields definition

Score: 0

Views: 98

Answers: 3

Read More
Chifti Saidi
Chifti Saidi

Reputation: 460

Is this a correct way to initialize all the bit fields in a struct?

Score: 1

Views: 77

Answers: 2

Read More
FlexTapeDude
FlexTapeDude

Reputation: 41

Union of struct with one element vs union of element mplab pic32

Score: 2

Views: 83

Answers: 2

Read More
Vern
Vern

Reputation: 2413

How to enforce the struct bit order with the GCC compiler?

Score: 14

Views: 16238

Answers: 1

Read More
Slendi
Slendi

Reputation: 321

CTypes bitfield sets whole byte

Score: 4

Views: 47

Answers: 2

Read More
wonderingdev
wonderingdev

Reputation: 1181

Getting negative value with bit-fields

Score: 1

Views: 1659

Answers: 3

Read More
Eric Auld
Eric Auld

Reputation: 1244

Byte alignment in bit-fields

Score: 1

Views: 79

Answers: 1

Read More
Byte Insight
Byte Insight

Reputation: 1154

How to mask an int with bitfields

Score: 2

Views: 322

Answers: 1

Read More
CugelTC
CugelTC

Reputation: 5

Interpreting bit-packed data in Python with structs and ctypes: misaligned results

Score: 0

Views: 141

Answers: 5

Read More
比尔盖子
比尔盖子

Reputation: 3637

Why is it considered okay to use structs to represent MMIO registers in embedded system firmware, but not bit fields?

Score: 1

Views: 170

Answers: 1

Read More
PreviousPage 1Next