Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Does Caml have slow arithmetics ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-07-07 (12:34)
From: Diego Olivier Fernandez Pons <Diego.FERNANDEZ_PONS@e...>
Subject: Re: [Caml-list] Does Caml have slow arithmetics ?

> In principle yes, because int values are represented as tagged
> (31bits) ints (with the LSB set to 1). So conversion is a shift
> followed by an addition (or viceversa).

Subsidiary question : why LSB instead of MSB ? I thought it would be
simpler to let the computations silently overflow and correct when
necessary the tag bit.

        Diego Olivier

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: