From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Making --with-wide-int the default Date: Fri, 16 Oct 2015 16:22:09 +0300 Message-ID: <83twpr54ou.fsf@gnu.org> References: <5610ED13.1010406@dancol.org> <56117F37.9060808@dancol.org> <83oag087gs.fsf@gnu.org> <83oafz70im.fsf@gnu.org> <5620AF43.4050401@cs.ucla.edu> <83k2qn6xfm.fsf@gnu.org> <5620B4FA.1000804@cs.ucla.edu> <87y4f3tdsr.fsf@fencepost.gnu.org> <83a8rj6uu5.fsf@gnu.org> <87h9lrtb98.fsf@fencepost.gnu.org> <83y4f35dhd.fsf@gnu.org> <878u73t8ed.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445001764 5018 80.91.229.3 (16 Oct 2015 13:22:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 13:22:44 +0000 (UTC) Cc: lekktu@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 16 15:22:37 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zn4xp-0005h0-Py for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 15:22:29 +0200 Original-Received: from localhost ([::1]:53621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4xo-00032M-Qq for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 09:22:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4xa-00032B-OR for emacs-devel@gnu.org; Fri, 16 Oct 2015 09:22:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn4xZ-0007wq-Ty for emacs-devel@gnu.org; Fri, 16 Oct 2015 09:22:14 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:56689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4xV-0007st-3k; Fri, 16 Oct 2015 09:22:09 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NWB00N00EGAHC00@mtaout26.012.net.il>; Fri, 16 Oct 2015 16:25:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWB00KZDEM5O720@mtaout26.012.net.il>; Fri, 16 Oct 2015 16:25:17 +0300 (IDT) In-reply-to: <878u73t8ed.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191752 Archived-At: > From: David Kastrup > Cc: lekktu@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org > Date: Fri, 16 Oct 2015 12:28:10 +0200 > > >> > What is "non-native" about 'long long int'? > >> > >> Register lengths and opcodes. You need two registers for every > >> operation, and several opcodes. > > > > Yes, and the compiler already implements that in the most efficient > > way possible. > > And GMP makes use of that. But at the cost of a function call, which brings its own overhead. > "The most efficient way possible" is still less efficient than using > 32bit. You cannot implement 32-bit buffer positions using a 32-bit C data type. You need a few more bits. But you know this, so I have a feeling we are talking past each other.