From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Gramiak Newsgroups: gmane.emacs.devel Subject: Re: Using __builtin_expect (likely/unlikely macros) Date: Fri, 19 Apr 2019 14:53:51 -0600 Message-ID: <87y3457m3k.fsf@gmail.com> References: <87a7gst973.fsf@gmail.com> <875zrgt12q.fsf@gmail.com> <6919a4c8-df76-ea1e-34db-1fa62a360e5a@cs.ucla.edu> <87h8aykdod.fsf@gmail.com> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="255916"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 19 22:56:01 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 1hHaYC-0014Sw-B1 for ged-emacs-devel@m.gmane.org; Fri, 19 Apr 2019 22:56:01 +0200 Original-Received: from localhost ([127.0.0.1]:33067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHaYB-00081M-7j for ged-emacs-devel@m.gmane.org; Fri, 19 Apr 2019 16:55:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHaY0-0007qV-Oa for emacs-devel@gnu.org; Fri, 19 Apr 2019 16:55:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHaW6-00009N-UD for emacs-devel@gnu.org; Fri, 19 Apr 2019 16:53:51 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:39592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHaW6-00009C-OV for emacs-devel@gnu.org; Fri, 19 Apr 2019 16:53:50 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id i17so3012833pfo.6 for ; Fri, 19 Apr 2019 13:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7hzc2aBWwJhsps07PLGU0pHn3Fk7Q/+Zk3lnjdDroqw=; b=ubGlQpqY/fjp03IbC8C0RaFG2D5slEdThRkVXf+hs+QLMgctSD0pr4ophBvVQSAauH bJ8DXJmomYcxsaNTHvbRSBXys4ia6jGUZlFeH3HRS1lDjsmcjwS2S06rcGIU037xSmJ1 AC6S7hhcG2J+mA6kfMX85lIDynu27mpOAp1yL4P0oe6nynOqv6NB4nYhLW8EVNrEsr4B lo0kEmLpKqHDInHrYUdUKpe+GgCxWVafjcYffHURYAsJGHzRxirXAD0LN2qt26YRwuPm agYZbH29u/mTZQYTIixdya049opD7aM8sKXr9wbkhUmlJKzuOsFPwVMjdOK4f2wwvfaW 5rag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7hzc2aBWwJhsps07PLGU0pHn3Fk7Q/+Zk3lnjdDroqw=; b=Rfl44z+6j4jXK9DETMiD7iOifghBJ9szWJ+S3t16DRYyXkFSQgmPZBmR6YbFVascrP HCW4yXQVUVFBVKgyd3dOde3x5FmuGpe854td8/0i2hKjvcC/6YdX3+PlLxaud5nVyITC IQdIrnlhfLXtTwnTjctIQwFnGkaRndZtaQs0fQF67UdNR10Jm5d2FsBvtcy8APaQx32X D7bGokxeInvYY1AU/NFL3RZA2qJYNvXGuw85Kzne1on0byJ+7aloH6QpX2wWKO9oO+Yj 3LTCOOqzFfVDIdwx8PQjv1lgulBti+b00Dqv+6JGPMyvgyuUZXwVNS4fq0RhqD6Qh4xa t88w== X-Gm-Message-State: APjAAAXaucLp9YKnOsFoTw1nn6YLL+fC9bJlcd1Q5y7dZjiU1SUxJcvp lFwwm+FED8Dyd7UF3PZIK710tqVe X-Google-Smtp-Source: APXvYqwim59FhkF6fgUD8yCyy0Ez6LdhyqpQtji+pVUd1sKEYFfuxgByvSC2Yjq5h1ivtGZHuCVyPA== X-Received: by 2002:a62:448d:: with SMTP id m13mr6275788pfi.182.1555707229533; Fri, 19 Apr 2019 13:53:49 -0700 (PDT) Original-Received: from lylat ([2604:3d09:e37f:1500:1a72:4878:e793:7302]) by smtp.gmail.com with ESMTPSA id h20sm16321010pfj.40.2019.04.19.13.53.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 13:53:48 -0700 (PDT) In-Reply-To: (Paul Eggert's message of "Fri, 19 Apr 2019 10:33:43 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42b 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:235678 Archived-At: 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.