From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: Bignum performance (was: Shrinking the C core) Date: Tue, 15 Aug 2023 06:58:39 +0200 Message-ID: <54195cac-0e60-f458-9a07-c1574168be4b@gmail.com> References: <87msyth8jh.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cc: emacs-devel@gnu.org To: incal@dataswamp.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 15 06:59:36 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 1qVm9Y-0000EQ-32 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Aug 2023 06:59:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVm8k-0001EX-D7; Tue, 15 Aug 2023 00:58:46 -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 1qVm8j-0001Ce-3z for emacs-devel@gnu.org; Tue, 15 Aug 2023 00:58:45 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVm8h-0000po-Kw for emacs-devel@gnu.org; Tue, 15 Aug 2023 00:58:44 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31771bb4869so4724894f8f.0 for ; Mon, 14 Aug 2023 21:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692075522; x=1692680322; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:cc:to:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=Sg6jNAGNOTtBDS5L21ZD8wAWL3mrfDXQTuDuvUyU4d4=; b=Tmetj6lYGXHagbpWMDQO/Wgsf9KeymZy5JnXwJUdnlZTacd0u4z86x+1R6+qXUTjg2 4d006YfGijKwAUnVtX+xt0zCeL1667TqAd7l79wcGrkyyb+E9yEFCJ4i38lrIA6tKH85 JAEU8gdsMmLnPB553hkJnqv/sQ4Qb3QsGf+GgvGnXiPEGq1aqxWtOBZw33m9Yp1B09+H i0knjubFmQIE0WTCcahkUoTYMTFXl3K3eWLqA9hWnvLOnOJyigwGtnbVv2tmTqnwoLW7 b6wDMQIoavE2E5gjBWVdZlBKFYv3tGroJY7PfmX1iG+/H6jEHIPcN/7XsUAc8/avX6y7 hi6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692075522; x=1692680322; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:cc:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Sg6jNAGNOTtBDS5L21ZD8wAWL3mrfDXQTuDuvUyU4d4=; b=IHHhvuFKOJbIQ6B+sB3HZBB6kIu1yMZCr2KyYKPKXtS04sYI1dz4IVLFFVdvUB1GCy hyVxZE2n9TS+U5c5EnU+1dqYaVAOM1QWpiKUjBVZPqOtSKUeA9TMiNFt0TS+Y4tx54uX +9XsJeP5+odV17KEkNb5b/2YeKbOmU1mwU0ibfCI6Hls8xAqqDqRrdLl2Skd1kcdriwD Q1tKecquSK1e8J0nAYwDo37Oqs1XtcbSZrjTYXFfztXES/yq8IyQKYed4KkaQfEs6rci 1bp4UPtkytcRKdmxUQnByicyXo8h3zh7nthy4j6OpkxkYjJL3A5UDA/V3htWzsQoY9ri GpEA== X-Gm-Message-State: AOJu0YzsxMxgLNW4WcMp/klf8ZPfdAL5uQWdH35Va1Sb7ljNCqJ4J+Zt 6BVElVEd8FZQl32WpC4LEznNU8Y57+0= X-Google-Smtp-Source: AGHT+IGyuHnKoAnLyBNkQ6TUnAcb4jHQlUXso1+/i9sIGJTBNZ+Gf8aVJ4Vv0BBRoMDmcwoJBrUR6g== X-Received: by 2002:adf:fdce:0:b0:313:ecd3:7167 with SMTP id i14-20020adffdce000000b00313ecd37167mr8823638wrs.42.1692075521554; Mon, 14 Aug 2023 21:58:41 -0700 (PDT) Original-Received: from [192.168.178.21] (p54b0c257.dip0.t-ipconnect.de. [84.176.194.87]) by smtp.gmail.com with ESMTPSA id x6-20020aa7dac6000000b0052241b8fd0bsm6354790eds.29.2023.08.14.21.58.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Aug 2023 21:58:40 -0700 (PDT) Content-Language: en-US In-Reply-To: <87msyth8jh.fsf@dataswamp.org> Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, NICE_REPLY_A=-2.265, RCVD_IN_DNSWL_NONE=-0.0001, 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:308747 Archived-At: > How do you see only fixnums are used? By reading the assembly, and remembering a thing or two from my times as a CMUCL contributor, e.g. its fixnum representation. SBCL is a fork of CMUCL. > 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. It's a 64-bit machine, more specifically an M1. i.e. arm64. How you get from there to these 16 bits escapes me.