From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 09 May 2016 16:19:34 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:59508 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S27028422AbcEIOTbX3Lco (ORCPT ); Mon, 9 May 2016 16:19:31 +0200 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.15.2/8.14.8) with ESMTP id u49EJU5R030336; Mon, 9 May 2016 16:19:30 +0200 Received: (from ralf@localhost) by scotty.linux-mips.net (8.15.2/8.15.2/Submit) id u49EJUDf030335; Mon, 9 May 2016 16:19:30 +0200 Date: Mon, 9 May 2016 16:19:30 +0200 From: Ralf Baechle To: Paul Burton Cc: linux-mips@linux-mips.org Subject: Re: [PATCH] MIPS: Implement __arch_bitrev* using bitswap for MIPSr6 Message-ID: <20160509141930.GB28818@linux-mips.org> References: <1462538103-6633-1-git-send-email-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1462538103-6633-1-git-send-email-paul.burton@imgtec.com> User-Agent: Mutt/1.6.0 (2016-04-01) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 53311 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Fri, May 06, 2016 at 01:35:03PM +0100, Paul Burton wrote: > Release 6 of the MIPS architecture introduced the bitswap instruction, > which reverses the bits within each byte of a word. Make use of this > instruction to implement the __arch_bitrev* functions, which should be > faster for most MIPSr6 CPUs, reduces code size slightly and allows us to > avoid the lookup table used by the generic implementation, saving 256 > bytes in the kernel binary by dropping that. > > Signed-off-by: Paul Burton Applied after fixing up a trivial conflict. It would be a bit cleaner if was including itself. does so but there's no guarantee for that. Ralf