From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9SoX-0003xN-Ry for qemu-devel@nongnu.org; Mon, 11 Apr 2011 21:54:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9Jmd-0003zw-TC for qemu-devel@nongnu.org; Mon, 11 Apr 2011 12:16:12 -0400 Received: from b.mail.sonic.net ([64.142.19.5]:41583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9Jmd-0003ye-BP for qemu-devel@nongnu.org; Mon, 11 Apr 2011 12:16:11 -0400 Message-ID: <4DA31C0B.20407@twiddle.net> Date: Mon, 11 Apr 2011 08:19:39 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1302462785-8672-1-git-send-email-aurelien@aurel32.net> <20110411145502.GY23480@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-sh4: get rid of CPU_{Float, Double}U List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Aurelien Jarno , qemu-devel@nongnu.org, Nathan Froyd On 04/11/2011 08:09 AM, Peter Maydell wrote: > (4) I think you should be able to write a helper function for an > add as just > float32 HELPER(my_float_add)(float32 a, float32 b) { > return float32_add(a, b, status); > } While this is a laudable goal, this will fail for hosts that pass all structures by reference. This is true of, e.g. PPC32. r~