From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [208.118.235.92] (port=59808 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfXNR-0003Ni-La for qemu-devel@nongnu.org; Fri, 04 Jan 2019 16:51:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfXNI-0005Np-Bg for qemu-devel@nongnu.org; Fri, 04 Jan 2019 16:51:31 -0500 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]:38753) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfXNA-0005Hq-JG for qemu-devel@nongnu.org; Fri, 04 Jan 2019 16:51:22 -0500 Received: by mail-io1-xd2a.google.com with SMTP id l14so30620982ioj.5 for ; Fri, 04 Jan 2019 13:51:17 -0800 (PST) References: <945511ac-d99a-d483-12a2-e6ad4dda09c2@linaro.org> <38b906b7-56a6-a0dc-95f3-365452b59099@linaro.org> From: Richard Henderson Message-ID: Date: Sat, 5 Jan 2019 07:51:09 +1000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] AVX support for TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nick Renieris Cc: QEMU Developers On 1/5/19 7:43 AM, Nick Renieris wrote: > Just curious, why is gvec-desc a bitfield instead of a normal struct? > Surely it'd be more readable that way. Also this is C, so it's not > even a typed bitfield, just a uint32. I'm guessing there's a reason > behind this? As an integer it is always passed by value. As a structure some host abis pass it by reference, and the TCG compiler doesn't know about that. r~