scsh-users
[Top] [All Lists]

Re: bitwise ops on 32-bit word

To: scsh-news@zurich.ai.mit.edu
Subject: Re: bitwise ops on 32-bit word
From: suranap@hotmail.com (Pinku Surana)
Date: 13 Aug 2003 08:37:50 -0700
Organization: http://groups.google.com/
Someone kindly pointed out in email that scheme48 v0.53 requires the
bigbit structure, while the bitwise structure works correctly in
higher versions.

suranap@hotmail.com (Pinku Surana) wrote in message 
news:<ac422143.0308121135.72456c8b@posting.google.com>...
> This fails in s48 since, I assume, it uses 29-bit ints. How can one do
> bitwise ops on 32-bit ints? Thanks.
> 
> 
> > (arithmetic-shift #x1fffffff 1)
> 
> Error: exception
>        wrong-type-argument
>        (arithmetic-shift 536870911 1)

<Prev in Thread] Current Thread [Next in Thread>