Am 12.10.20 um 17:49 schrieb Sebastien Lorquet: > Hello, > > It could be useful in bit packed structure, but that implies the absence > of any padding bits... > > I cant think of a use case outside of structures. > > > BTW, Cant you achieve arbitrary size integers with a bitfield structure? > > https://stackoverflow.com/questions/3917425/how-to-implement-unsigned-33-bit-integer-type > > |struct uint33_t { uint64_t value : 33; }; | > > Admittedly I believe your solution would make the syntax a bit less > cumbersome.
This will indeed work. However then one will always to have to work with a struct. And people are complaining that static analyzers aren't good at handling bit-fields. Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user