Re: Logical operators...

From: John Prevost (prevost@maya.com)
Date: Fri Aug 27 1999 - 01:18:04 MET DST


To: Hugues CASSE <casse@irit.fr>
Subject: Re: Logical operators...
From: John Prevost <prevost@maya.com>
Date: 26 Aug 1999 19:18:04 -0400
In-Reply-To: Hugues CASSE's message of "Thu, 26 Aug 1999 14:11:23 +0200"

Hugues CASSE <casse@irit.fr> writes:

> Is there a bug or is there a way to get the correct result...
>
> # 0xffff0000 lsr 16;;
> - : int = 32767
> while
> # 0x0000ffff;;
> - : int = 65535

Unfortunately, "native" integers in O'Caml are 31 bits long on 32 bit
machines, and 63 on 54-bit machines.

John.



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:24 MET