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
float precision on AMD64
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-04-10 (13:20)
From: Ville-Pertti Keinonen <will@e...>
Subject: Re: [Caml-list] float precision on AMD64
sejourne_kevin wrote:

> Do you want to say that one small logical operation (' and ' or '
> shift') after the evaluation of an expression ' float ' will be slower
> than the management of it box?

Shifting floats wouldn't make much sense, but you could just clear/set 
the tag bit (it would be the least significant bit of the mantissa). 
However, this would be insufficient if you wanted control over rounding 
(you could only have round-toward-zero).

Of course someone content with losing a bit of precision from the 
mantissa probably wouldn't care too much about rounding.