From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: Bignum performance Date: Wed, 16 Aug 2023 09:31:53 +0800 Message-ID: <87leeblqly.fsf@yahoo.com> References: <87bkfartof.fsf@localhost> <175cf474-29c8-a482-072e-0de784ac59e8@gmail.com> <87o7jaqc31.fsf@localhost> <2d419e12-9239-de3e-47d0-38815a00025f@gmail.com> <87msyth8jh.fsf@dataswamp.org> <871qg4n7n4.fsf@yahoo.com> <87wmxwfk9r.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38439"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 16 03:33:01 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qW5PB-0009oO-Ff for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Aug 2023 03:33:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qW5OM-0001oB-5s; Tue, 15 Aug 2023 21:32:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qW5OK-0001o0-Gh for emacs-devel@gnu.org; Tue, 15 Aug 2023 21:32:08 -0400 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qW5OH-0007jy-QS for emacs-devel@gnu.org; Tue, 15 Aug 2023 21:32:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692149523; bh=hkbBAaXUji9VnCSco13GP/M+mmCCY14bjCBiwhMS/D0=; h=From:To:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=izCCLVL2mmdfM7suR1giW7LREBTw2Bp49YM5uO1YpMnroG8/gZqulfXX3cVi2dUrmM1p3eHb/Vq9qmRfQgdE0BtyZG3RkuU25uxHEyP0WDlz3NmHwtOaWvx0bGiT78an8BAxYFGTaTw/DYmkLMtS5IQGAi5OxuPIQeEZAzqmeIGdUOLt8kq9U5R815txQbPMmwP49OCewtgURDZmi5/sI6/M3zmeEj4qhg2dtmKUHEslxw/ozcGaN0rKryTYXyPV0HYOZsjSTv4kzKf1/pSpvBUnDwEwe+2ftkcZa81oDd+Sc7dPMJdzNjf+v05/M3X7QF91ITT+tfQqc9XZLQ5VBw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692149523; bh=CQuWrnBY25evx/uypCFRi7x9Q2SsIzGZafJ6OzqTQbk=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=HXOD67/mjPyYjgW7Bqicg4sqA0CkAmVflSvbX2ZuzzgNKULecNvIE0W+cSt1sh54RxuSbX8xJ/hrVs4sdgSnusqifa/GQSRNwrzEecJCk5d0lcmMPuSY1u5zuY9o9J6HHI9+TWBJh1yPNtRXEe7BdiatLWXx9BYJmlzyGk/7HNsV4I1FZgSDESvm1GX7S4hG3TE8IipayHVC23Zoey3FEFR5tAWSL69xDrrkf4FFpmJcg2FSoDmlcSnUTV+0Yquk9bmXqV97rwH3rhlMPU/oT7K/4M0WYIQjHDzIvByg54VIk8fyohje5YIzz7ZVpvkJvZaq7MgMvQhTDJ/N2fiWaw== X-YMail-OSG: OEmI6x0VM1nhocmy1NRNaTw8hjEStoHP0bdSoLicuwdVeV2WLzpqpfFwWhV.YtG dz9ShmYvy5XxADD3XuAOXzVyy_UTp2Dvdvz0VcoryUjHPzGZfmxxpQWO4UyVIvSjXr62NOnTPe0F DeY9QG2.RMD1IgQrNNrlH.jUbo.ZNd41qWTNg2Lp13EUxv71XLFE5B65HIHtmkDvBqeacl8TBBDN u5de.8XGg59UO99FLJcT7.j0CNjLJV8.5kmABCfJcFSICtFnM2rAD4tM9loA9f8wdR7w_ydhxH1a w855aFHjjJaiGuRFFcnalegmf.YTiKO5fXH6tvy2l2moXaNvCzw2DDft3owAJOJq..zo6gu4K8sL vbWHbJhsxIJvtXerXNDN_jcMXi1df26Z6HpnH0drJlcb455nQaJapASfcYTmI_7HGizVkcYlq29l bAEoP35fER.9zJJKaEm.gE9m6q_IkFfDT09gTAsXWL_aL8T9k6cq7yE63HjqRkH1rXfuo9V5wE5B bbyjIQC0ZTZByWuNQVLX8buPvfExNBVewdwDKF9HfFdysJTX03OnSsaxbCXWO6_Pz9O02ORzmHWn VDCBKgAPWu9118RvmVcIuFxsWUmrJo_iB6DHwaa80VIddE50UBUNIf81B_QMEcLy4JF5AqZxjCO4 ZnKwbpMZfIrYIHu821qYhA71gn2Mir8KnLH8kgryxEp2mgigwrK7QLek8kCZvsCoiggQfzupDqny kzm6lMvj86niT2SV2mSKV_mLqGjOm7KU4Qf1hntuLU6go614gDKhs21avns2AsSUN64zOlGTSERX QfyaPMgJhLo94lb3GVnKlf3.h9.SMF7TP5_DTKYOMm X-Sonic-MF: X-Sonic-ID: 66860bf5-3caf-425c-a54f-033c605cb947 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Wed, 16 Aug 2023 01:32:03 +0000 Original-Received: by hermes--production-sg3-69654d8bd-cgvfq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 10addac96fc31c92ffca85000d2dc224; Wed, 16 Aug 2023 01:31:58 +0000 (UTC) In-Reply-To: <87wmxwfk9r.fsf@dataswamp.org> (Emanuel Berg's message of "Tue, 15 Aug 2023 16:33:04 +0200") X-Mailer: WebService/1.1.21732 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.199; envelope-from=luangruo@yahoo.com; helo=sonic301-30.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308781 Archived-At: Emanuel Berg writes: > Po Lu wrote: > >>> Are we talking 1 word = 2 bytes = 16 bits here, s2c? >>> >>> If so, the range of fixnums are -32 768 to 32 767 >>> inclusive, so those are hardly huge numbers. >> >> Under Arm64, general purpose integer registers are 64 bits >> wide. That is also the word size of said machine. > > If they are, the range for fixnums is > > (list (* -1 (expt 2 (1- 64))) > (1- (expt 2 (1- 64))) ) > > (-9223372036854775808 9223372036854775807) > > Only after that it gets slower :P Lisp systems normally set aside several of the high or low bits of a register as a tag linking a type to the object represented.