Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erik de Castro Lopo <ocaml-erikd@m...>
Subject: Re: [Caml-list] Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance
On Thu, 13 Jan 2005 15:24:19 -0500
John Prevost <j.prevost@gmail.com> 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