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: master b0ba0d42b0f: * src/lisp.h (EQ): Improve generated code. Date: Thu, 28 Nov 2024 22:16:07 +0200 Message-ID: <867c8ncdx4.fsf@gnu.org> References: <173279015204.1017853.4020802222494409378@vcs3.savannah.gnu.org> <20241128103552.86CC34F4FDB@vcs3.savannah.gnu.org> <8BCABD6D-6605-438C-A62D-B7DA42D07AD4@gmail.com> 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="15046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pipcet@protonmail.com, acorallo@gnu.org, emacs-devel@gnu.org To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 28 21:17:03 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 1tGkwh-0003lU-LD for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Nov 2024 21:17:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGkw4-0002H2-Pg; Thu, 28 Nov 2024 15:16:24 -0500 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 1tGkw0-0001tg-T0 for emacs-devel@gnu.org; Thu, 28 Nov 2024 15:16:21 -0500 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 1tGkw0-0002Qi-EM; Thu, 28 Nov 2024 15:16:20 -0500 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=3L2b1Vg3YdjELqtFu/YAWPa8XD8ienX1gIQP+fz/oXg=; b=ommQFnCuvQZTG0+ayu4u 9sGuIcSGcoRm9uQWZjzZPxTY4Jskih5NWnJrDmeP58rzRseYHKHeJKzoBtcZ2H1IUM7GqTolx7itC e4oElghW6xdmrAbkEQZIPv0OgCuZIZltW6qm2ITRaK3B7UPBu3Zh+O31SMcD/IHj1mmOpLmryqthe 2iE88WnP7PGhRI4KGNBhwku8KFInBRqE3zq2kFZZ3iFlUKX2LOvBNc1PwzRASLxV0A/df4qT26Aqg zjStB1XRIMnTMVpVwoM9KQHwQOxAJ96LgzIxY2uuyzFe2I0vKGKPuRpqLoYj8N2k7AWl2uD2hGiV1 DLh+/hzPTdx8fA==; In-Reply-To: <8BCABD6D-6605-438C-A62D-B7DA42D07AD4@gmail.com> (message from Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Thu, 28 Nov 2024 18:53:46 +0100) 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:325834 Archived-At: > From: Mattias EngdegÄrd > Date: Thu, 28 Nov 2024 18:53:46 +0100 > Cc: Andrea Corallo , > Emacs Devel > > We should probably define some variant of likely/unlikely because those cover most needs of __builtin_expect, rather than using it directly. Then portability wouldn't be a problem. Portability is already not a problem, so I see no need for inventing new macros for this purpose.