From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: glyphless Date: Mon, 26 Mar 2012 21:17:28 +0800 Message-ID: <87zkb37b87.fsf@gnu.org> References: <83haxcsgyk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332767888 11920 80.91.229.3 (26 Mar 2012 13:18:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2012 13:18:08 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 15:18:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SC9o9-0000Xi-VY for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2012 15:18:02 +0200 Original-Received: from localhost ([::1]:43582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC9o9-0000hF-0u for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2012 09:18:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC9o1-0000h5-WA for emacs-devel@gnu.org; Mon, 26 Mar 2012 09:17:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SC9nv-00037y-Sa for emacs-devel@gnu.org; Mon, 26 Mar 2012 09:17:53 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:53908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC9nn-00035j-UJ; Mon, 26 Mar 2012 09:17:40 -0400 Original-Received: by pbcup15 with SMTP id up15so6489807pbc.0 for ; Mon, 26 Mar 2012 06:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=USKl/DqUiJu2eZFBvkVFPeBlf4bPtCMMcNbzrnZbzBc=; b=yrIOEldCqIqcflzpp0KCicijbaKCKOXaRs2naFA8SZnoidnCX1TOgTGq6Gtxq5xnDk T0iZIG2/B+PQkHZERCUATHI0HoqN3rnQqVGfCjrsOQD/amfXaG567VW+lepRslrOEFYc zsGZDBY31veXdHRo1HYWfP4L8pJK5fFxPQSS4mJ5U3OZ9vnztkj6ScWkbAnlioSuKdw6 /ycEVhgCh5QCvueXkQRSjfsVoHUuOKruqH4rR9qRFNAqDzTOjqYEZZjUiiefaCYDI2EV t5328mlDVrl7YPRB052+QHdzUqq07W3JXkJB84/MBXA8fovm3zvsCBoGg/UCQAj6cA/l glQw== Original-Received: by 10.68.220.104 with SMTP id pv8mr4811485pbc.153.1332767856440; Mon, 26 Mar 2012 06:17:36 -0700 (PDT) Original-Received: from home.jasonrumney.net ([180.75.189.85]) by mx.google.com with ESMTPS id b7sm12538676pba.2.2012.03.26.06.17.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Mar 2012 06:17:35 -0700 (PDT) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id CA6061A9C; Mon, 26 Mar 2012 21:17:28 +0800 (MYT) In-Reply-To: <83haxcsgyk.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 25 Mar 2012 19:55:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149217 Archived-At: Eli Zaretskii 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.