From owner-freebsd-current@freebsd.org Tue Dec 8 12:28:06 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED0AE9C1616 for ; Tue, 8 Dec 2015 12:28:06 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B68971D0F; Tue, 8 Dec 2015 12:28:06 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 14BCE1FE023; Tue, 8 Dec 2015 13:28:03 +0100 (CET) Subject: Re: [PATCH] XOR uses To: "Ranjan1018 ." <214748mv@gmail.com>, araujo@freebsd.org References: <20151208031327.GA17554@thinkpad.swarthmore.edu> Cc: Michael McConville , freebsd-current From: Hans Petter Selasky Message-ID: <5666CD40.8080700@selasky.org> Date: Tue, 8 Dec 2015 13:29:52 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 12:28:07 -0000 On 12/08/15 08:57, Ranjan1018 . wrote: > Hi, > > I prefer the syntax in the patch: > - the semantic is more clear for me: if you want to flip a bit you should > use xor > - it saves, probably, some bytes of assembly code > > Regards > Maurizio +1 And it is unconditional. --HPS