[Shootout-list] Re: [Caml-list] Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance

Erik de Castro Lopo ocaml-erikd at mega-nerd.com
Sun Apr 23 22:54:50 UTC 2006


On Thu, 13 Jan 2005 15:24:19 -0500
John Prevost <j.prevost at 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 at 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



More information about the Shootout-list mailing list