Return-Path: From: Rasmus Villemoes To: Cyrill Gorcunov Cc: Andrew Morton , "Eric W. Biederman" , linux-kernel@vger.kernel.org, stable@vger.kernel.org, "H. Peter Anvin" , Pavel Emelyanov Subject: Re: [PATCH] kcmp: Fix standard comparison bug References: <1409827206-4199-1-git-send-email-linux@rasmusvillemoes.dk> <20140904132912.GL16395@moon> Date: Thu, 04 Sep 2014 17:35:43 +0200 In-Reply-To: <20140904132912.GL16395@moon> (Cyrill Gorcunov's message of "Thu, 4 Sep 2014 17:29:12 +0400") Message-ID: <87sik7tn3k.fsf@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: On Thu, Sep 04 2014, Cyrill Gorcunov wrote: > On Thu, Sep 04, 2014 at 12:40:06PM +0200, Rasmus Villemoes wrote: >> >> Note that it makes absolutely no difference that a transmogrying ^^^^ transmogrifying > It's more than that, I looked into disassembly code and > found that compiler overoptimize obfuscation, instead of doing > ^ and * sequently it substracts xor production of both operands > first and only then multiplies the result. ...which it seems to be perfectly entitled to; xz - yz == (x-y)z holds in any ring. Anyway, I'll stop beating the dead horse. Rasmus