[plt-scheme] Bit manipulation in PLT Scheme

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Fri Mar 10 18:43:28 EST 2006

> My doubt is, isn't any number represented in MzScheme interpreted as a
> big num be it either 1, 2 or 324234928340928343123? Or MzScheme is able
> internally to represent 30000 inside an int since it checks there is no
> need for a bignum?

Chapter 12 of "Inside Mzscheme" suggests that the numbers handled by
fixnums and bignums are disjoint:

http://download.plt-scheme.org/doc/301/html/insidemz/insidemz-Z-H-12.html#node_chap_12

It checks and does appear to do a scheme_bignum_normalize() which brings
bignums back to fixnum status if it can fit.


Best of wishes!




Posted on the users mailing list.