From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Making 'eq' == 'eql' in bignum branch Date: Wed, 22 Aug 2018 10:26:19 +0200 Message-ID: References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <87lgaio7xd.fsf@tromey.com> <877em1cb0i.fsf@tromey.com> <765767b2-d2e5-a9a6-f724-d58ecf4847bb@cs.ucla.edu> <76081b5d-8c10-0a37-2c97-d4864c0faa80@cs.ucla.edu> <09153aed-361d-4f82-d9ac-b502314769ae@cs.ucla.edu> <83k1oldqao.fsf@gnu.org> <87r2irvk5f.fsf@gmail.com> <87k1ojv8oa.fsf@gmail.com> <62ffbb4d-97e8-1359-5b73-b6add8cc3d1c@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1534926562 2198 195.159.176.226 (22 Aug 2018 08:29:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2018 08:29:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 10:29:18 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fsOVx-0000L3-PA for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2018 10:29:17 +0200 Original-Received: from localhost ([::1]:57548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsOXx-0001NR-Tt for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2018 04:31:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsOTK-0006tS-0f for emacs-devel@gnu.org; Wed, 22 Aug 2018 04:26:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsOTF-0001uZ-GV for emacs-devel@gnu.org; Wed, 22 Aug 2018 04:26:32 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:49684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fsOTF-0001qf-7y for emacs-devel@gnu.org; Wed, 22 Aug 2018 04:26:29 -0400 Original-Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fsOT5-0003np-Dy for emacs-devel@gnu.org; Wed, 22 Aug 2018 10:26:21 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEX0Dwf6FAnMAAD0Syfw KBb/k0/vAAH/AAD1Gg3/cDr7CgX4BAL5OB3gAAH0IRH3WTEklvYiAAABtklEQVQ4ja2Sr08DMRTH +ydQDAshJ6owZzhLsgSNYjmBRYBCbGJNbkFsamoCMlFFDsGSJhgEJ3CcICE1zJBAZsgE4lIxd+r4 tttg0DtBwpPfT9/3/egj3AlJ+/tqh7h6TAcqLQO0ppWbMZJw0iqY/QBSjiRFQpYWK0DaQAE9VWlx PgdRBCmmJgZZplR9CaTVaN/oSn2D9rPu9rt6oDX6CYKiKHIDpGTb2sT8sdGLvEF4JG/mwOpWBrgg 8L9i/tIlKIS4FEIMGySK6Zgx+zoN6gWAEOEwbBApa4wxZW0AchEehgiTYUCmYpUiIwcIF0CuMeZn TzyzncJ+AXh0bcAj3zJFVgFvwcrb4B76BcnFENXDgwV4HfEmpQbVTbdCmMlvAXy7SqzMQ3e7KDZb gAn0zuS4PX7DmjfxoEc6sJqMXwDOmD9h/q2ftBP4E945YsndibG6v0++vq3lHoMLTv0KUJmxGnGv HMRy/TeIzEX0dfbwGzRxV129rxwQUdqltawE2BPTLgDBWX9MXWDujNJSgKTYKwWmhfeKyd0Bl1EJ rv663f8EVcWjqnbLvxYL9vbIceLq+JCHT1ToOodZWpAQAAAAAElFTkSuQmCC In-Reply-To: <62ffbb4d-97e8-1359-5b73-b6add8cc3d1c@cs.ucla.edu> (Paul Eggert's message of "Tue, 21 Aug 2018 12:35:07 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.224.195 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:228800 Archived-At: Slightly off-topic, but I thought it was amusing: I was reading a blog post on C over/underruns, and I got to this bit: Note that there is no value than can hold 2147483648, so if you negate (int)0x80000000, you get (int)0x80000000 again. That is something to look out for, because it means abs() returns a negative value when fed -2147483648. I didn't know that, and indeed in Emacs until a few weeks ago: (abs most-negative-fixnum) =3D> -2305843009213693952 Now, of course, with bignum support, we get a more correct result: (abs most-negative-fixnum) =3D> 2305843009213693952 (bignump (abs most-negative-fixnum)) =3D> t So now we don't have to fix the documentation of `abs': --- abs is a built-in function in =E2=80=98C source code=E2=80=99. (abs ARG) Return the absolute value of ARG. --- --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no