From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96762 invoked by alias); 11 Oct 2016 19:12:13 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 96716 invoked by uid 89); 11 Oct 2016 19:12:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=U*rth, rth@redhat.com, rthredhatcom X-HELO: dtbo.net Received: from mic92-4-82-224-21-170.fbx.proxad.net (HELO dtbo.net) (82.224.21.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Oct 2016 19:12:00 +0000 Received: from anakin (anakin-wifi [IPv6:2a01:e35:2e01:5aa0:4639:c4ff:fe19:5162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dtbo.net (Postfix) with ESMTPSA id 011B8222C30; Tue, 11 Oct 2016 21:11:57 +0200 (CEST) Date: Tue, 11 Oct 2016 19:12:00 -0000 From: Damien =?UTF-8?B?VGjDqWJhdWx0?= To: Richard Henderson Cc: Andrew Pinski , "libffi-discuss@sourceware.org" Subject: Re: Floating-point variadic function call Message-ID: <20161011211153.72cc9f4a@anakin> In-Reply-To: References: <20161010070352.GA11072@han> <20161010072746.GA12478@han> User-Agent: Claws Mail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016/txt/msg00046.txt.bz2 On Tue, 11 Oct 2016 08:27:02 -0500 Richard Henderson wrote: > > I'm actually using ffi_prep_cif_var() for the variadic call, but > > what should I put as arg_type then ?=20=20 >=20 > 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. --=20 Damien Th=C3=A9bault