From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Proposal: immediate strings Date: Tue, 29 May 2012 08:24:00 -0700 Organization: UCLA Computer Science Department Message-ID: <4FC4EA10.702@cs.ucla.edu> References: <4FBB51E7.6080601@yandex.ru> <4FC472E6.5020005@yandex.ru> <4FC47CE1.6050901@cs.ucla.edu> <4FC4D025.9020608@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338305058 18509 80.91.229.3 (29 May 2012 15:24:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 15:24:18 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 29 17:24:17 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 1SZOHM-0005RF-Mt for ged-emacs-devel@m.gmane.org; Tue, 29 May 2012 17:24:12 +0200 Original-Received: from localhost ([::1]:55943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOHM-0002EZ-Ew for ged-emacs-devel@m.gmane.org; Tue, 29 May 2012 11:24:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOHF-0002EO-FJ for emacs-devel@gnu.org; Tue, 29 May 2012 11:24:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZOHD-00039U-Lm for emacs-devel@gnu.org; Tue, 29 May 2012 11:24:05 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:45469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOHD-00038l-Fd for emacs-devel@gnu.org; Tue, 29 May 2012 11:24:03 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 71299A60022; Tue, 29 May 2012 08:24:01 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UN+Q7-ETrt8e; Tue, 29 May 2012 08:24:01 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0903539E800C; Tue, 29 May 2012 08:24:01 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: <4FC4D025.9020608@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:150681 Archived-At: On 05/29/2012 06:33 AM, Dmitry Antipov wrote: > On 05/29/2012 11:38 AM, Paul Eggert wrote: > this allows > > min (MOST_POSITIVE_FIXNUM, (ptrdiff_t) min (SIZE_MAX, PTRDIFF_MAX - 1) - 1) > > in all configurations (so PTRDIFF_MAX - 2 for --with-wide-int), eventually > uses _all_ bits by eliminating signed values. That one's clever, but doesn't it grow the size of "struct Lisp_String" by a word, due to the padding bytes after the gcmarkbit member? Why does gcmarkbit have to be in the same place for the two kinds of strings? If you could put gcmarkbit in different places in the different union members, you wouldn't need that padding.