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 Date: Wed, 16 Aug 2023 07:41:52 +0200 Message-ID: <0e06a5ea-eb07-30b5-4aa9-9c514bd78ffe@gmail.com> References: <874jkzllqq.fsf@yahoo.com> <2dec78a7-76e0-8789-4d20-7f0f6effe28a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11727"; 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: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 16 07:43:12 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 1qW9JH-0002qL-IA for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Aug 2023 07:43:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qW9IA-0004uB-9G; Wed, 16 Aug 2023 01:42:02 -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 1qW9I7-0004tx-IY for emacs-devel@gnu.org; Wed, 16 Aug 2023 01:41:59 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qW9I3-00056P-O4 for emacs-devel@gnu.org; Wed, 16 Aug 2023 01:41:58 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so14815915a12.1 for ; Tue, 15 Aug 2023 22:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692164514; x=1692769314; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=nmKyp4BT4hbMuzKpUBHRO917+G+BilWnZlFNH59j9Dg=; b=sRikuyR0bHtFYhKVF/1C2z47Jdwpo99mshsA7SfDMgJNjgKAl96fDVKktJvN8qva6g 1HsEBd1etgbRuONu+Ov169SY5wzJURtzGIgdD5jznkvXOEk6OGPovh6htWtEJ8S20rxU UPjZGZrZ+SI2AL5WenTQdKub7Xe/DvKff8l9z2c5GEeSEngLqQduYwt3DpIGmtgGu6w1 vuRzxaaUPnUCZm0t47h0l+Gxn/hGoLoDP4ehW8ZFQ58zfZgiVag7/syuJHSgy4dbsiTN jHt6yJmi6zA9CACEuxfAr4ieb/+t5PbYrIHuXhxMSvD2L4x1bPqShUItcLsKH70sTLE8 dKww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692164514; x=1692769314; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nmKyp4BT4hbMuzKpUBHRO917+G+BilWnZlFNH59j9Dg=; b=AlxAw2tY86majgdQLU+QBOlyR2s/KWKDbHd2bv6NJMaSI38s8KCjtCppCbNzF8E1Tu AGZmHNCpgPHCU01msGUnuQS5x+tBC0ejVEPgW1OyNvS2pRwsfKbLi6gUmV182a+ZxtNp OcnL5j+y2VYes/d1f5Ot+TV0k2ZQlB/uCl9QrJQEcig8PZ8g3L5c92J+vzpSbu+jSDzK LBieUHVcGmZ0TGOz6fxRaG0LV7qx0aOsVipH2X1LjPW0FazJH4X6z263N2lERHNPoQl5 61XWCoFol9kA9+QLhhEJMI47ike0epE3FcdGsfoDtoSYfX3oYU2jXlKCMfvY3DaPeUXg bHZQ== X-Gm-Message-State: AOJu0YwTBgfrAwbo75Hlx8YhfQFDkzD0KHMHrO2kSr0cR2RJpS588BIh 0DnqgzlhitM4ArM5nCVHja8= X-Google-Smtp-Source: AGHT+IEqJ7Nu/VYDszdUEn7FzkW3QLq+ZRzkv7KYlkICMxUvI13bCBT0z1Ob2OR/pd0nbsAtA7M4Zw== X-Received: by 2002:a17:906:20d6:b0:99b:ce6d:fc90 with SMTP id c22-20020a17090620d600b0099bce6dfc90mr1258789ejc.2.1692164513831; Tue, 15 Aug 2023 22:41:53 -0700 (PDT) Original-Received: from [192.168.178.21] (pd9e36e45.dip0.t-ipconnect.de. [217.227.110.69]) by smtp.gmail.com with ESMTPSA id o27-20020a17090637db00b0099bc8db97bcsm8025053ejc.131.2023.08.15.22.41.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 22:41:53 -0700 (PDT) Content-Language: en-US In-Reply-To: <2dec78a7-76e0-8789-4d20-7f0f6effe28a@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, NICE_REPLY_A=-1.045, 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:308795 Archived-At: On 16.08.23 07:18, Gerd Möllmann wrote: >> I don't know about SBCL, but as for Emacs, refer to the definition of >> VALBITS in lisp.h (maybe also the right files among m/*.h and s/*.h, but >> I have no idea where they've disappeared to.) > > The SBCL I have here, a Homebrew installation, uses the scheme where Oops, I'm actually not running the SBCL from Homebrew, but my own... Anyway, the tagging is like this: @c 64-bit lowtag assignment (wider-fixnums) @c xyz0 -- Fixnum (where z or yz may also be 0 depending on n-fixnum-tag-bits) @c xx01 -- Other-immediate @c xx11 -- Pointer @c 0011 -- Instance-pointer @c 0111 -- List-pointer @c 1011 -- Function-pointer @c 1111 -- Other-pointer https://github.com/sbcl/sbcl/blob/master/doc/internals/objects-in-memory.texinfo