[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using the GNU GMP Library for Bignums in Emacs
From: |
Richard Stallman |
Subject: |
Re: Using the GNU GMP Library for Bignums in Emacs |
Date: |
Fri, 04 May 2018 00:26:15 -0400 |
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
I don't think people want (format "%x" (lognot 257)) to output "-102".
Not on any platform. It isn't what code expects, and it isn't useful.
Perhaps, with bignums, lognot should take a width operand, measured in bits.
So (lognot 257 32) would produce 0xfffffefe (a positive number)
and (lognot 257 64) would produce 0xfffffffffffffefe (a positive number).
Another idea: %Nx with a negative number should output its 2's
complement representation in 4N bits.
--
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Skype: No way! See https://stallman.org/skype.html.
- Re: Using the GNU GMP Library for Bignums in Emacs, Paul Eggert, 2018/05/01
- Re: Using the GNU GMP Library for Bignums in Emacs, Richard Stallman, 2018/05/02
- Re: Using the GNU GMP Library for Bignums in Emacs, Paul Eggert, 2018/05/03
- Re: Using the GNU GMP Library for Bignums in Emacs, Helmut Eller, 2018/05/03
- Re: Using the GNU GMP Library for Bignums in Emacs, Eli Zaretskii, 2018/05/03
- Re: Using the GNU GMP Library for Bignums in Emacs, Paul Eggert, 2018/05/03
- Re: Using the GNU GMP Library for Bignums in Emacs,
Richard Stallman <=
- Re: Using the GNU GMP Library for Bignums in Emacs, Ken Raeburn, 2018/05/05
- Re: Using the GNU GMP Library for Bignums in Emacs, Richard Stallman, 2018/05/05
- Re: Using the GNU GMP Library for Bignums in Emacs, Ken Raeburn, 2018/05/07
- Re: Using the GNU GMP Library for Bignums in Emacs, Richard Stallman, 2018/05/07
- Re: Using the GNU GMP Library for Bignums in Emacs, Andreas Schwab, 2018/05/07
- Re: Using the GNU GMP Library for Bignums in Emacs, Helmut Eller, 2018/05/03
- Message not available
- Re: Using the GNU GMP Library for Bignums in Emacs, Helmut Eller, 2018/05/03
- Re: Using the GNU GMP Library for Bignums in Emacs, Paul Eggert, 2018/05/03
- Re: Using the GNU GMP Library for Bignums in Emacs, Richard Stallman, 2018/05/04