On Tue, 28 Nov 2023 14:07:41 +0000 Euan Bourke <euan.bourke at intel.com> wrote: > +struct core_bits { > + uint8_t bits[(UINT16_MAX + 1)/CHAR_BIT]; > + uint16_t max_bit_set; > + uint16_t min_bit_set; > + uint32_t total_bits_set; > +}; Looks like a good candidate for flex array