[racket] runtime determining 32 vs 64 bit machine?

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Mon Dec 24 00:34:31 EST 2012

On 12/24/12 12:24 AM, Danny Yoo wrote:
> I'm currently looking at (system-type 'machine) to determine whether
> I'm on a 32-bit vs 64-bit machine.  However, the strings I'm getting
> are a bit too platform specific, and I'm resorting to matching the
> string "64" somewhere in there.  Is there a nicer way to approach
> this?

Just a thought: (fixnum? (sub1 (expt 2 62)))

David



Posted on the users mailing list.