* glyphless
@ 2012-03-25 17:55 Eli Zaretskii
2012-03-25 19:19 ` glyphless Andreas Schwab
2012-03-26 13:17 ` glyphless Jason Rumney
0 siblings, 2 replies; 3+ messages in thread
From: Eli Zaretskii @ 2012-03-25 17:55 UTC (permalink / raw)
To: Kenichi Handa; +Cc: emacs-devel
/* 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)?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: glyphless
2012-03-25 17:55 glyphless Eli Zaretskii
@ 2012-03-25 19:19 ` Andreas Schwab
2012-03-26 13:17 ` glyphless Jason Rumney
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2012-03-25 19:19 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel, Kenichi Handa
Eli Zaretskii <eliz@gnu.org> writes:
> I though Andreas said that using 25 here, so that the entire member
> fits in 32 bits, would be better (performance-wise, I presume)?
I guess the difference, if any, will be lost in the noise (glyphless
chars are rare anyway).
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: glyphless
2012-03-25 17:55 glyphless Eli Zaretskii
2012-03-25 19:19 ` glyphless Andreas Schwab
@ 2012-03-26 13:17 ` Jason Rumney
1 sibling, 0 replies; 3+ messages in thread
From: Jason Rumney @ 2012-03-26 13:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel, Kenichi Handa
Eli Zaretskii <eliz@gnu.org> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-26 13:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-25 17:55 glyphless Eli Zaretskii
2012-03-25 19:19 ` glyphless Andreas Schwab
2012-03-26 13:17 ` glyphless Jason Rumney
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.