From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS image cache Date: Sun, 05 May 2024 22:18:42 +0300 Message-ID: <867cg8cbjh.fsf@gnu.org> References: <875xvvp3fo.fsf@gmail.com> <87o79n0wna.fsf@gmail.com> <86ikzseipz.fsf@gnu.org> <86bk5keev3.fsf@gnu.org> <867cg8ed56.fsf@gnu.org> <861q6ge4iy.fsf@gnu.org> <86ttjccl7g.fsf@gnu.org> <86edagcezb.fsf@gnu.org> <86a5l4ceku.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6992"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 05 21:19:50 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s3hOn-0001eY-Tl for ged-emacs-devel@m.gmane-mx.org; Sun, 05 May 2024 21:19:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3hOE-0002Gr-RV; Sun, 05 May 2024 15:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3hO8-0002AO-9f for emacs-devel@gnu.org; Sun, 05 May 2024 15:19:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3hO8-0000jo-0H; Sun, 05 May 2024 15:19:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=UUaxsfBOe5mVpQYLQefBf++PyNa2rX/z1oyVlPUZERo=; b=Y72wSrvuMxLUiYYfGrE5 MSYEleD4O1vQxQnQ8E95dkx7nw0IhNLEO8nSfLX+sbvdsx6fOqsKFu67Gj1eauc9sA5v72bkEYGpM Xp2yp6IAQQTIw7/gCzdSpm1fD5v1zhC1PsicJYkj+YDq8TY5ALYFFAoy6lkITo7f1T5i0Ya9eW+aQ +sEeMXlN7ccKA5IgcKFrSWyQ62lNQMgEdvKvTyJITUSgZbAsvQK3Rw32qNwsn4TmvR7YQHRIZ+V3r D7yqypX3wGXFd6T7rWj+6wtMVU+kHnbNaWEeWhJ6nIH3mndEWrModOwotQr5b6kTXS1jU3lLi6GOF 9Y6DHgjEIZEcNA==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Sun, 05 May 2024 20:35:48 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318863 Archived-At: > From: Gerd Möllmann > Cc: eller.helmut@gmail.com, emacs-devel@gnu.org > Date: Sun, 05 May 2024 20:35:48 +0200 > > Eli Zaretskii writes: > > > Or maybe it's preferable to use > > > > size_t imax = h->nwords - to_words (sizeof (struct igc_header)); > > > > instead (assuming that mps_word_t and 'void *' must be of the same > > size)? > > Yes, I think that looks best. Done.