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

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Mon, 27 Apr 2015 10:29:25 +0200

> 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,
Received on Mon Apr 27 2015 - 10:29:25 CEST

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