From patchwork Fri Apr 23 17:04:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 94718 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3NH8okH014082 for ; Fri, 23 Apr 2010 17:09:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758397Ab0DWRIv (ORCPT ); Fri, 23 Apr 2010 13:08:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54383 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758347Ab0DWRIq (ORCPT ); Fri, 23 Apr 2010 13:08:46 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3NH8jWJ003775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 23 Apr 2010 13:08:46 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3NH8jVX012509; Fri, 23 Apr 2010 13:08:45 -0400 Received: from amt.cnet (vpn-11-16.rdu.redhat.com [10.11.11.16]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o3NH8i3n010364; Fri, 23 Apr 2010 13:08:44 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 3126C68A9C3; Fri, 23 Apr 2010 14:07:55 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o3NH7tGR000870; Fri, 23 Apr 2010 14:07:55 -0300 Message-Id: <20100423170645.900109068@amt.cnet> User-Agent: quilt/0.47-1 Date: Fri, 23 Apr 2010 14:04:13 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org Cc: qemu-devel@nongnu.org, Marcelo Tosatti Subject: [uq/master patch 3/5] introduce leul_to_cpu References: <20100423170410.914857113@amt.cnet> Content-Disposition: inline; filename=leul_to_cpu X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 23 Apr 2010 17:09:16 +0000 (UTC) Index: qemu-memslot/bswap.h =================================================================== --- qemu-memslot.orig/bswap.h +++ qemu-memslot/bswap.h @@ -205,8 +205,10 @@ static inline void cpu_to_be32wu(uint32_ #ifdef HOST_WORDS_BIGENDIAN #define cpu_to_32wu cpu_to_be32wu +#define leul_to_cpu(v) le ## HOST_LONG_BITS ## _to_cpu(v) #else #define cpu_to_32wu cpu_to_le32wu +#define leul_to_cpu(v) (v) #endif #undef le_bswap