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

From: suigin <suigin_AT_national.shitposting.agency>
Date: Mon, 27 Apr 2015 07:51:40 -0700

On Mon, Apr 27, 2015 at 10:31:38AM +0200, koneu wrote:
> Add to that, non-int bit fields are a GNU extension.

You're right. It works because uint_least32_t happens to be a
typedef of unsigned int for x86_64. Changing it so that it reads:

>typedef struct {
> uint_least32_t u;
> unsigned int mode:12;
> unsigned int fg:10;
> unsigned int bg:10;
>} Glyph

Is enough to make it comply with the standard in a portable manner.

Received on Mon Apr 27 2015 - 16:51:40 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 27 2015 - 17:00:10 CEST