This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Floating-point variadic function call
- From: Damien Thébault <damien at dtbo dot net>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Andrew Pinski <pinskia at gcc dot gnu dot org>, "libffi-discuss at sourceware dot org" <libffi-discuss at sourceware dot org>
- Date: Tue, 11 Oct 2016 21:11:53 +0200
- Subject: Re: Floating-point variadic function call
- Authentication-results: sourceware.org; auth=none
- References: <20161010070352.GA11072@han> <CA+=Sn1mm1s45mQ3f0MVvXMhjn4hyRrSqW6wZzAwGW-+2XkonWw@mail.gmail.com> <20161010072746.GA12478@han> <a0f9ac7b-832d-3954-b74e-6c849bfa4d3b@redhat.com>
On Tue, 11 Oct 2016 08:27:02 -0500
Richard Henderson <rth@redhat.com> wrote:
> > I'm actually using ffi_prep_cif_var() for the variadic call, but
> > what should I put as arg_type then ?
>
> You must do the mandatory C promotion yourself. Put ffi_type_double.
Ok thank you, I will handle that on my side then, this should not be a
problem.
--
Damien Thébault