emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using the GNU GMP Library for Bignums in Emacs


From: Helmut Eller
Subject: Re: Using the GNU GMP Library for Bignums in Emacs
Date: Thu, 03 May 2018 20:51:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Thu, May 03 2018, Eli Zaretskii wrote:

>> (format "%016x" (lognot 257)) => "3ffffffffffffefe"
>> 
>> but the 16-hex-digit string should be "fffffffffffffefe".
>
> But a 16-hex-digit fffffffffffffefe is not a fixnum, right?

Well, (lognot 257) is fixnum.  And if we explicity specify the length,
then the 16-hex-digit string "fffffffffffffefe" represents the same
fixnum as the 4-hex-digit string "fefe".

Helmut




reply via email to

[Prev in Thread] Current Thread [Next in Thread]