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
Pervasives.{min,max} not specialized to floats by ocamlopt
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-08-18 (15:43)
From: Shawn <shawnw@s...>
Subject: Re: [Caml-list] Pervasives.{min, max} not specialized to floats by ocamlopt
Olivier Andrieu wrote:
>  Will M Farr [Thursday 17 August 2006] :
>  > I don't know how hard it would be to change this in ocamlopt, but
>  > it seems like it would be pretty simple.
> I don't know, float comparisons tend not to be 'pretty simple' usually
> (because of NaNs).

So only do it with -ffast-math, which already special-cases Pervasives 
functions like sin and cos...

It looks like only the x86 port supports that option right now, though. 
Hmm. It really should be present on all architectures, even if it 
doesn't actually do anything.