[plt-scheme] Integer-length

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Mar 22 14:42:13 EST 2006

At Wed, 22 Mar 2006 11:32:33 -0800, "Jim Blandy" wrote:
> What's frustrating here is that, for bignums, the system has an
> approximation to the log base 2--- the length of the number in memory
> --- right there, but it won't give it to you.  So you should be able
> to get it in constant time.

If it is merely a matter of finding the right C structs and extracting
the right values, you might consider using Eli's ffi interface to get
it out. I used it recently for a similar task and it worked well.


Posted on the users mailing list.