From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Using __builtin_expect (likely/unlikely macros) Date: Sat, 20 Apr 2019 00:05:10 +0000 Message-ID: <20190420000510.GA4867@ACM> References: <4fa7885e-8c66-c7c4-ff71-a013505863af@cs.ucla.edu> <2dfb837d-989d-c736-b6e6-b20c0e940596@cs.ucla.edu> <87o956c4n4.fsf@gmail.com> <1fbd2fca-18f0-0a90-7a45-58419a9e11ee@cs.ucla.edu> <1555450070.23658.4@yandex.ru> <66b74701-012a-902e-4a5b-6bc30efa87c0@cs.ucla.edu> <87tveu85xt.fsf@gmail.com> <87y3457m3k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6365"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Paul Eggert , emacs-devel@gnu.org To: Alex Gramiak Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 20 02:05:47 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHdVo-0001Uq-TD for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2019 02:05:45 +0200 Original-Received: from localhost ([127.0.0.1]:34697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHdVn-0000Nm-OU for ged-emacs-devel@m.gmane.org; Fri, 19 Apr 2019 20:05:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHdVf-0000Nb-3l for emacs-devel@gnu.org; Fri, 19 Apr 2019 20:05:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHdVe-0003Ez-7S for emacs-devel@gnu.org; Fri, 19 Apr 2019 20:05:35 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:45702 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1hHdVc-00033S-7C for emacs-devel@gnu.org; Fri, 19 Apr 2019 20:05:34 -0400 Original-Received: (qmail 4405 invoked by uid 3782); 20 Apr 2019 00:05:12 -0000 Original-Received: from acm.muc.de (p4FE15E1E.dip0.t-ipconnect.de [79.225.94.30]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 20 Apr 2019 02:05:10 +0200 Original-Received: (qmail 4907 invoked by uid 1000); 20 Apr 2019 00:05:10 -0000 Content-Disposition: inline In-Reply-To: <87y3457m3k.fsf@gmail.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:235682 Archived-At: Hello, Alex and Paul. On Fri, Apr 19, 2019 at 14:53:51 -0600, Alex Gramiak wrote: > Thanks for testing it out. I'll take your advice about measurements in > the future. > Paul Eggert writes: > > Yes, I considered other names but they all had problems too, and AVOID > > worked the best for me of the names that I thought of. A mnemonic is > > that 'extern AVOID time_overflow (void);' means that execution typically > > avoids calling time_overflow. If someone can think of a better name that > > would be good. Or we can just get accustomed to AVOID; as you say, it's > > not that big a deal. > The only ones I can think of at the moment are RARE/RARELY, or a slight > change to AVOIDS. Can I ask that if anybody starts using a new attribute macro, that they update the value of c-noise-macro-names under c-mode in .dir-locals? That way, correct fontification will then continue to happen whilst editing our C files. Thanks! -- Alan Mackenzie (Nuremberg, Germany).