From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKCKV-0007Rd-Pd for qemu-devel@nongnu.org; Thu, 12 Sep 2013 15:13:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKCKO-0002wX-5m for qemu-devel@nongnu.org; Thu, 12 Sep 2013 15:13:27 -0400 Received: from qemu.weilnetz.de ([37.221.198.45]:38613 helo=v2201305906712890.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKCKN-0002w9-R2 for qemu-devel@nongnu.org; Thu, 12 Sep 2013 15:13:20 -0400 From: Stefan Weil Date: Thu, 12 Sep 2013 21:13:10 +0200 Message-Id: <1379013193-20691-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 0/3] Add and use bit rotate functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Peter Maydell , Richard Henderson The first patch was already sent to qemu-devel and is only included here because patch 3 is based on it. Only patch 1 is needed for qemu-stable. It looks like shift values of 0 or 32/64 work as expected because the compiler "knows" the pattern used to implement the rotate operation, so the code does not need special handling of some shift values. rol8 and ror8 are currently unused. I added them nevertheless, so they can be used when someone needs them. [PATCH 1/3] tci: Add implementation of rotl_i64, rotr_i64 [PATCH 2/3] bitops: Add rotate functions (rol8, ror8, ...) [PATCH 3/3] misc: Use new rotate functions