From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 46283BC48 for ; Sun, 10 Apr 2005 15:20:16 +0200 (CEST) Received: from will.iki.fi (will.iki.fi [217.169.64.20]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3ADKFbY017861 for ; Sun, 10 Apr 2005 15:20:16 +0200 Received: from [192.168.1.204] (ZMCXLI.dsl.saunalahti.fi [85.76.70.242]) by will.iki.fi (Postfix) with ESMTP id 79960172; Sun, 10 Apr 2005 16:20:15 +0300 (EEST) Message-ID: <425927FE.606@exomi.com> Date: Sun, 10 Apr 2005 16:19:58 +0300 From: Ville-Pertti Keinonen User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) X-Accept-Language: en-us, en MIME-Version: 1.0 To: sejourne_kevin Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] float precision on AMD64 References: <2a1a1a0c0504091814876c24a@mail.gmail.com> <42588430.3060105@rftp.com> <425914C2.1010101@yahoo.fr> <4259157C.5090400@exomi.com> <42593B4D.2040601@yahoo.fr> In-Reply-To: <42593B4D.2040601@yahoo.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4259280F.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 rounding:01 rounding:01 wrote:01 slower:01 expression:01 floats:01 logical:01 float:03 float:03 probably:05 sense:08 evaluation:09 content:89 bit:10 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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.