From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bignum branch Date: Sun, 15 Jul 2018 21:27:34 +0300 Message-ID: <838t6c9wx5.fsf@gnu.org> References: <87o9fbbw1t.fsf@tromey.com> <86in5jdj49.fsf@gmail.com> <83wotxaiwi.fsf@gnu.org> <86k1pxmvmx.fsf@gmail.com> <83efg4a6ie.fsf@gnu.org> <41221ccf-0c1a-c7e6-2204-e3f9056f7eb5@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1531679165 10098 195.159.176.226 (15 Jul 2018 18:26:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2018 18:26:05 +0000 (UTC) Cc: andrewjmoreton@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 15 20:26:00 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 1felia-0002VH-MB for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2018 20:26:00 +0200 Original-Received: from localhost ([::1]:47033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1felkh-0007Ke-LZ for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2018 14:28:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1felk4-0007KM-OC for emacs-devel@gnu.org; Sun, 15 Jul 2018 14:27:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1felk1-0003jj-HY for emacs-devel@gnu.org; Sun, 15 Jul 2018 14:27:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1felk1-0003jd-Bs; Sun, 15 Jul 2018 14:27:29 -0400 Original-Received: from [176.228.60.248] (port=1933 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1felk0-0001dv-NF; Sun, 15 Jul 2018 14:27:29 -0400 In-reply-to: <41221ccf-0c1a-c7e6-2204-e3f9056f7eb5@cs.ucla.edu> (message from Paul Eggert on Sun, 15 Jul 2018 10:31:04 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:227437 Archived-At: > Cc: emacs-devel@gnu.org > From: Paul Eggert > Date: Sun, 15 Jul 2018 10:31:04 -0700 > > Eli Zaretskii wrote: > > Btw, I had a cursory look at the GMP sources, and it seemed to me that > > changing GMP to lift this limitation should not be too hard. The > > patch shown in this message: > > > > https://gmplib.org/list-archives/gmp-discuss/2016-March/005965.html > > > > seems to confirm that. So maybe someone could build GMP with MinGW64 > > after applying that patch, and if it works, submit the patches to > > MSYS2 guys so that they could release a fixed library. Then Emacs > > won't need to jump through these hoops on 64-bit Windows systems. > > It'd still have to jump through the hoops for 32-bit systems --with-wide-int, > though. Yes. And maybe also for other platforms. > Instead, how about fixing our GMP substitute source code to work for > this situation, and fall back on it when GMP proper doesn't handle long long? Not sure what you mean by "our GMP substitute source code". Do you mean mini-gmp? I didn't yet look at it, and so I don't know what that means in practice. (Someone said it's less efficient than GMP?) > That should work for both 32-bit --with-wide-int and MinGW64, and won't require > us to wait for any action on the part of MSYS2 or the GMP maintainers. There's no need to wait anyway. We should condition use of GMP on EMACS_INT being not wider than the appropriate GMP type (I guess mp_bitcnt_t?), and then if and when GMP learns to support 64-bit Windows, things will "just work".