Re: [PATCH 09/11] vt: update gen_ucs_width.py to produce more space efficient tables

From: Nicolas Pitre
Date: Tue Apr 15 2025 - 15:17:52 EST


On Mon, 14 Apr 2025, Jiri Slaby wrote:

> On 10. 04. 25, 3:14, Nicolas Pitre wrote:
> > From: Nicolas Pitre <npitre@xxxxxxxxxxxx>
> >
> > Split table ranges into BMP (16-bit) and non-BMP (above 16-bit).
> > This reduces the corresponding text size by 20-25%.
>
> I like this!
>
> > -struct interval {{
> > +struct interval16 {{
> > + uint16_t first;
> > + uint16_t last;
> > +}};
> > +
> > +struct interval32 {{
> > uint32_t first;
> > uint32_t last;
>
> Actually, why not to use u16 and u32, respectively?

No particular reason. The kernel uses both so I picked the one that made
it easier for prototyping in user space. It is u16+u32 now.


Nicolas