From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCSrd-0002eO-6j for qemu-devel@nongnu.org; Thu, 22 Aug 2013 07:15:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCSrW-0005lu-VY for qemu-devel@nongnu.org; Thu, 22 Aug 2013 07:15:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCSrW-0005li-Je for qemu-devel@nongnu.org; Thu, 22 Aug 2013 07:15:34 -0400 Message-ID: <5215F2AB.3030509@redhat.com> Date: Thu, 22 Aug 2013 13:14:51 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1377159632-7446-1-git-send-email-aik@ozlabs.ru> <1377159632-7446-2-git-send-email-aik@ozlabs.ru> <5215D561.3050702@redhat.com> <5215DE80.4030203@redhat.com> <5215ECFB.6080908@ozlabs.ru> In-Reply-To: <5215ECFB.6080908@ozlabs.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/3] int128: add int128_exts64() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Peter Maydell , Alex Williamson , QEMU Developers Il 22/08/2013 12:50, Alexey Kardashevskiy ha scritto: > 1) return (Int128) { .lo = a, .hi = (a < 0) ? -1 : 0 }; > 2) return (Int128) { .lo = a, .hi = (a < 0) }; > 3) return (Int128) { .lo = a, .hi = a >> 63 }; > > So with which one should I repost the patch? The second would be "-(a < 0)" actually. Peter wants (1) I think, so go for it. Paolo