From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aodvG-0004gD-Pz for qemu-devel@nongnu.org; Fri, 08 Apr 2016 17:26:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aodvC-0006yY-Pv for qemu-devel@nongnu.org; Fri, 08 Apr 2016 17:26:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aodvC-0006yU-LK for qemu-devel@nongnu.org; Fri, 08 Apr 2016 17:26:30 -0400 References: <1460050358-25025-1-git-send-email-cota@braap.org> <1460050358-25025-7-git-send-email-cota@braap.org> <87bn5kb6ek.fsf@linaro.org> <5707FA93.9090803@twiddle.net> <87a8l3bxpc.fsf@linaro.org> From: Paolo Bonzini Message-ID: <570821FD.2010107@redhat.com> Date: Fri, 8 Apr 2016 23:26:21 +0200 MIME-Version: 1.0 In-Reply-To: <87a8l3bxpc.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 06/13] qemu-thread: add simple test-and-set spinlock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Richard Henderson Cc: "Emilio G. Cota" , QEMU Developers , MTTCG Devel , Peter Crosthwaite , Peter Maydell , Sergey Fedorov On 08/04/2016 23:24, Alex Benn=C3=A9e wrote: > > Except that quite a lot of hosts can only (efficiently) do atomic ope= rations on > > a minimum of 4 byte quantities. I'd rather continue to use int here. >=20 > I suspect bool =3D=3D unsigned int underneath. But having true/false an= d 0/1 mixed up > gets confusing even if they are equivalent. Sometimes sizeof(bool) =3D=3D 1. Paolo