Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261248AbVAWHro (ORCPT ); Sun, 23 Jan 2005 02:47:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261250AbVAWHro (ORCPT ); Sun, 23 Jan 2005 02:47:44 -0500 Received: from siaag1af.compuserve.com ([149.174.40.8]:41363 "EHLO siaag1af.compuserve.com") by vger.kernel.org with ESMTP id S261248AbVAWHrk (ORCPT ); Sun, 23 Jan 2005 02:47:40 -0500 Date: Sun, 23 Jan 2005 02:44:52 -0500 From: Chuck Ebbert <76306.1226@compuserve.com> Subject: Re: [PATCH 1/12] random pt4: Create new rol32/ror32 bitops To: Matt Mackall Cc: linux-kernel , Andrew Morton , "Theodore Ts'o" Message-ID: <200501230247_MC3-1-93FA-7A4E@compuserve.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 526 Lines: 17 On Sat, 22 Jan 2005 at 20:13:24 -0800 Matt Mackall wrote: > So I think tweaks for x86 at least are unnecessary. So the compiler looks for that specific sequence of instructions: (a << b) | (a >> (sizeof(a) * 8 - b) and recognizes that it means rotation? Wow. Chuck - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/