From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So9hl-0003D4-1d for qemu-devel@nongnu.org; Mon, 09 Jul 2012 04:52:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1So9hd-0005nC-AW for qemu-devel@nongnu.org; Mon, 09 Jul 2012 04:52:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So9hd-0005mn-2J for qemu-devel@nongnu.org; Mon, 09 Jul 2012 04:52:21 -0400 From: Markus Armbruster References: Date: Mon, 09 Jul 2012 09:43:30 +0200 In-Reply-To: (blauwirbel@gmail.com's message of "Sun, 8 Jul 2012 19:22:33 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v2 3/3] bitops: use bool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: blauwirbel@gmail.com Cc: blueswirl@gmail.com, qemu-devel@nongnu.org blauwirbel@gmail.com writes: > From: Blue Swirl > > Use 'bool' type for return value of bit test functions. Matter of taste. 'bool' makes sense if you think of these functions as predicates (ugly ones, with side effects). 'int' makes sense if you think of them as returning the bit value (a bit is not a truth value in my book). In my opinion, this is just unnecessary churn, and unnecessary deviation from established kernel practice.