all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, Kenichi Handa <handa@m17n.org>
Subject: Re: glyphless
Date: Mon, 26 Mar 2012 21:17:28 +0800	[thread overview]
Message-ID: <87zkb37b87.fsf@gnu.org> (raw)
In-Reply-To: <83haxcsgyk.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 25 Mar 2012 19:55:47 +0200")

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.



      parent reply	other threads:[~2012-03-26 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 17:55 glyphless Eli Zaretskii
2012-03-25 19:19 ` glyphless Andreas Schwab
2012-03-26 13:17 ` Jason Rumney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkb37b87.fsf@gnu.org \
    --to=jasonr@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.