emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glyphless


From: Jason Rumney
Subject: Re: glyphless
Date: Mon, 26 Mar 2012 21:17:28 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>     /* Sub-stretch for type == GLYPHLESS_GLYPH.  */
>     struct
>     {
>       /* Value is an enum of the type glyphless_display_method.  */
>       unsigned method : 2;
>       /* 1 iff this glyph is for a character of no font. */
>       unsigned for_no_font : 1;
>       /* Length of acronym or hexadecimal code string (at most 8).  */
>       unsigned len : 4;
>       /* Character to display.  Actually we need only 22 bits.  */
>       unsigned ch : 22; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>     } glyphless;
>
> I though Andreas said that using 25 here, so that the entire member
> fits in 32 bits, would be better (performance-wise, I presume)?

Probably better is to define an extra member "padding" or "spare", to
make it clear that the ch portion is only 22 bits.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]