caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Shawn <shawnw@speakeasy.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Pervasives.{min,	max} not specialized to floats by ocamlopt
Date: Fri, 18 Aug 2006 08:43:12 -0700	[thread overview]
Message-ID: <44E5E010.5090503@speakeasy.org> (raw)
In-Reply-To: <17637.56821.564137.320990@karryall.dnsalias.org>

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.


      parent reply	other threads:[~2006-08-18 15:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 18:34 Pervasives.{min,max} " Will M Farr
2006-08-18 15:34 ` [Caml-list] Pervasives.{min, max} " Olivier Andrieu
2006-08-18 15:37   ` Will M Farr
2006-08-18 15:43   ` Shawn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44E5E010.5090503@speakeasy.org \
    --to=shawnw@speakeasy.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).