Re: [dev] [st] [PATCH] Optimize memory footprint of line buffers

From: koneu <koneu93_AT_googlemail.com>
Date: Mon, 27 Apr 2015 10:31:38 +0200

On April 27, 2015 10:29:25 AM CEST, "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com> wrote:
>> typedef struct {
>> uint_least32_t u;
>> uint_least32_t mode:12;
>> uint_least32_t fg:10;
>> uint_least32_t bg:10;
>> } Glyph;
>
>The size of this struct is only one byte less than if the
>same of the struct using shorts. You can test it if you
>want.
>
>Regards,

Add to that, non-int bit fields are a GNU extension.
Received on Mon Apr 27 2015 - 10:31:38 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 27 2015 - 10:36:20 CEST