caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Markus Mottl <mottl@miss.wu-wien.ac.at>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Inline assembly?
Date: Thu, 29 Mar 2001 15:29:42 +0200	[thread overview]
Message-ID: <20010329152942.E6876@pauillac.inria.fr> (raw)
In-Reply-To: <20010323165915.A2990@miss.wu-wien.ac.at>; from mottl@miss.wu-wien.ac.at on Fri, Mar 23, 2001 at 04:59:15PM +0100

> > If the function operates over floats, there are other
> > performance tricks one can play; write me if this is the case.
> 
> I have some functions that return floats in the LAPACK-interface. They
> could (slightly) benefit from more appropriate calling conventions.
> 
> If I am not mistaken, it is not ok to use "noalloc" if the C-function uses
> "copy_double", because the latter could trigger the GC.

Correct.

> If the function
> returns a float, it seems that the additional annotation "float" could
> be applied, but it is obviously not always used in the Pervasives library
> (e.g. float_of_string; ld_exp).

Currently, the "float" annotation works only for external functions
where the result and all parameters are of type "float".  Typically,
transcendental and trigonometric functions.  In this case, the
arguments and result are passed unboxed, as C "double" floats.  But it
doesn't work for functions that take / return a mixture of floats and
other data types.

- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


      reply	other threads:[~2001-03-29 13:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-21  8:00 Niall Dalton
2001-03-22 13:28 ` Xavier Leroy
2001-03-23 15:59   ` Markus Mottl
2001-03-29 13:29     ` Xavier Leroy [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=20010329152942.E6876@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=mottl@miss.wu-wien.ac.at \
    /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).