From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: Bignum performance Date: Tue, 15 Aug 2023 19:07:58 +0200 Message-ID: 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+SvKfk6fXms6a8dH" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37944"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 15 19:08:59 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 1qVxXO-0009hV-P4 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Aug 2023 19:08:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVxWZ-000220-Sb; Tue, 15 Aug 2023 13:08:07 -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 1qVxWX-00021X-5m for emacs-devel@gnu.org; Tue, 15 Aug 2023 13:08:05 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVxWU-0004Rv-DG for emacs-devel@gnu.org; Tue, 15 Aug 2023 13:08:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lYWeZPJcsqG0fTYBW+LScJc0eKQV1tztJHZdbbAcGbI=; b=OjRj3CD1ndwX0RWN5zWzo1P7rO C1nYIBT8jWH1ZsYICpdt4hPK1ZTVaihnA0zcOqdWYMv7jQon+xtjcbe2lUGM5iGVecQsKlGDh6/iN hhmv9sX1iPFxRUSmu4ywcy6VEtCSPMoNdlU4a9lLFExV+LIBKTHkCovUscFPgJh7zn8XThJt0B5C2 quCPDP3qEz1zDWqo76q21jdTz/VUkRnP6nsckgVoN2OmxACHOi7D40s4CdzwYvlRA+sANPWvEDCWQ f+LaZzI78D6DAbJxnOeJVaPW+6ztnv6avua3lZ7fy15AWxazWLrczEwRDh0cM2pp8q6h+am487xPR hzO0qSJA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1qVxWQ-0008QP-8u for emacs-devel@gnu.org; Tue, 15 Aug 2023 19:07:58 +0200 Content-Disposition: inline In-Reply-To: <87wmxwfk9r.fsf@dataswamp.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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:308766 Archived-At: --+SvKfk6fXms6a8dH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 15, 2023 at 04:33:04PM +0200, Emanuel Berg wrote: > Po Lu wrote: >=20 > >> Are we talking 1 word =3D 2 bytes =3D 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. >=20 > If they are, the range for fixnums is >=20 > (list (* -1 (expt 2 (1- 64))) > (1- (expt 2 (1- 64))) ) >=20 > (-9223372036854775808 9223372036854775807) >=20 > Only after that it gets slower :P Unless SBCL uses tagged object representation. Unless the compiler can prove that some "thing" is going to be an int. Unless... Cheers --=20 t --+SvKfk6fXms6a8dH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZNuw5wAKCRAFyCz1etHa Rt6pAJ4tkiI6iGtFj2LroWy4bwGpD4dD7ACfbpEUyVL/44Dh13Krq2jLubZAVlU= =c+2K -----END PGP SIGNATURE----- --+SvKfk6fXms6a8dH--