From: "Göran Weinholt" <goran@weinholt.se>
To: 14879@debbugs.gnu.org
Subject: bug#14879: fixnum-width, greatest-fixnum and least-fixnum disagree
Date: Tue, 16 Jul 2013 16:02:55 +0200 [thread overview]
Message-ID: <87ip0a61rk.fsf@industria.weinholt.se> (raw)
[-- Attachment #1: Type: text/plain, Size: 826 bytes --]
Hello schemers,
scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (fixnum-width)
$1 = 61
scheme@(guile-user)> (greatest-fixnum)
$2 = 2305843009213693951
scheme@(guile-user)> (least-fixnum)
$3 = -2305843009213693952
If the reported fixnum width is correct, then these should be the least
and greatest fixnums:
(- (expt 2 (- (fixnum-width) 1))) => -1152921504606846976
(- (expt 2 (- (fixnum-width) 1)) 1) => 1152921504606846975
If the reported least and greatest fixnums are correct, then the fixnum
width is actually 62.
Tested with 2.0.9.33-3bbca-dirty on an amd64 system.
Regards,
--
Göran Weinholt <goran@weinholt.se>
20 JUSTICE KENNEDY: That seems odd. I mean,
21 Microsoft doesn't say please buy our disk because it's
22 the prettiest disk in the business.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next reply other threads:[~2013-07-16 14:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 14:02 Göran Weinholt [this message]
2013-07-16 21:41 ` bug#14879: fixnum-width, greatest-fixnum and least-fixnum disagree Mark H Weaver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ip0a61rk.fsf@industria.weinholt.se \
--to=goran@weinholt.se \
--cc=14879@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).