From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 16468BB91 for ; Thu, 13 Jan 2005 21:51:03 +0100 (CET) Received: from smtp.syd.swiftdsl.com.au (smtp.syd.swiftdsl.com.au [218.214.224.138]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id j0DKp0Rp005081 for ; Thu, 13 Jan 2005 21:51:01 +0100 Received: (qmail 10180 invoked from network); 13 Jan 2005 20:50:59 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.swiftdsl.com.au with SMTP; 13 Jan 2005 20:50:59 -0000 Received: from coltrane (localhost [127.0.0.1]) by coltrane.mega-nerd.net (Postfix) with SMTP id 9437E7AE0; Fri, 14 Jan 2005 07:50:57 +1100 (EST) Date: Fri, 14 Jan 2005 07:50:57 +1100 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Cc: shootout-list@lists.alioth.debian.org Subject: Re: [Caml-list] Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance Message-Id: <20050114075057.32893dd9.ocaml-erikd@mega-nerd.com> In-Reply-To: References: <3D3A6BF5-657B-11D9-A551-000393A34E82@mit.edu> <850815AC-6595-11D9-A551-000393A34E82@mit.edu> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 1.0.0beta3 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 41E6DF34.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 prevost:01 prevost:01 wrote:01 trivial:01 knuth:01 nospam:98 int:01 int:01 float:03 float:03 let:03 erik:04 erik:04 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.0 X-Spam-Level: On Thu, 13 Jan 2005 15:24:19 -0500 John Prevost wrote: > As for whether there's a quick "convert int to float" call in Intel, I > really have no idea. The assembly for the simple function: > > let test x = float_of_int x > > isn't trivial, however. Int to float should just work. Int to float is another matter. See this: http://www.mega-nerd.com/FPcast/ Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "Whenever the C++ language designers had two competing ideas as to how they should solve some problem, they said, "OK, we'll do them both". So the language is too baroque for my taste." -- Donald E Knuth