[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: Bignum performance
From: |
Emanuel Berg |
Subject: |
Re: [PATCH] Re: Bignum performance |
Date: |
Wed, 16 Aug 2023 07:35:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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
>
> ....0 -> fixnum
> ....1 -> other objects (discriminated by additional tag bits)
>
> I had the same for Emacs in the branch gerd_int in the
> 2000s, if memory serves me.
Ah, there is `fixnump' (and `bignump') to test for a specific
number,
(fixnump (expt 2 60)) ; t
(fixnump (expt 2 61)) ; nil
2^60 = 1152921504606846976, so that's pretty big.
--
underground experts united
https://dataswamp.org/~incal
- Re: [PATCH] Re: Bignum performance, (continued)
- Re: [PATCH] Re: Bignum performance, Po Lu, 2023/08/15
- Re: [PATCH] Re: Bignum performance, Emanuel Berg, 2023/08/15
- Re: [PATCH] Re: Bignum performance, Po Lu, 2023/08/15
- Re: [PATCH] Re: Bignum performance, tomas, 2023/08/16
- Re: [PATCH] Re: Bignum performance, Gerd Möllmann, 2023/08/16
- Re: [PATCH] Re: Bignum performance, Gerd Möllmann, 2023/08/16
- Re: [PATCH] Re: Bignum performance, Po Lu, 2023/08/16
- Re: [PATCH] Re: Bignum performance, Gerd Möllmann, 2023/08/16
- Re: [PATCH] Re: Bignum performance,
Emanuel Berg <=
- Re: [PATCH] Re: Bignum performance, Simon Leinen, 2023/08/18
- Re: [PATCH] Re: Bignum performance, Emanuel Berg, 2023/08/19
- Re: [PATCH] Re: Bignum performance, Ihor Radchenko, 2023/08/20
- Re: [PATCH] Re: Bignum performance, Emanuel Berg, 2023/08/20
- Re: [PATCH] Re: Bignum performance, Emanuel Berg, 2023/08/28