Message ID | d2173a18bf2637c9e366ef09fab9b7611bed0a6c.1453237258.git.alistair.francis@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6FEE2BEEE5 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jan 2016 22:41:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE25B2052A for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jan 2016 22:41:39 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 413402045E for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jan 2016 22:41:39 +0000 (UTC) Received: from localhost ([::1]:39501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1aLey2-0007Iz-Ll for patchwork-qemu-devel@patchwork.kernel.org; Tue, 19 Jan 2016 17:41:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuK-0000Z4-4p for qemu-devel@nongnu.org; Tue, 19 Jan 2016 17:37:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuG-0003r4-Tj for qemu-devel@nongnu.org; Tue, 19 Jan 2016 17:37:48 -0500 Received: from mail-sn1nam02on0071.outbound.protection.outlook.com ([104.47.36.71]:38797 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuG-0003qy-OM for qemu-devel@nongnu.org; Tue, 19 Jan 2016 17:37:44 -0500 Received: from BL2NAM02FT051.eop-nam02.prod.protection.outlook.com (10.152.76.52) by BL2NAM02HT072.eop-nam02.prod.protection.outlook.com (10.152.76.177) with Microsoft SMTP Server (TLS) id 15.1.355.15; Tue, 19 Jan 2016 22:37:43 +0000 Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=xilinx.com; suse.de; dkim=none (message not signed) header.d=none; suse.de; dmarc=none action=none header.from=xilinx.com; Received-SPF: Fail (protection.outlook.com: domain of xilinx.com does not designate 149.199.60.96 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.96; helo=xsj-tvapsmtpgw01; Received: from xsj-tvapsmtpgw01 (149.199.60.96) by BL2NAM02FT051.mail.protection.outlook.com (10.152.76.181) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Tue, 19 Jan 2016 22:37:42 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:34440 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuD-0008Qu-4s; Tue, 19 Jan 2016 14:37:41 -0800 Received: from [127.0.0.1] (port=41659 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuC-0007gj-Vc; Tue, 19 Jan 2016 14:37:41 -0800 Received: from xsj-tvapsmtp02 (xsj-tvapsmtp02.xilinx.com [172.16.1.203]) by tsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u0JMW7MJ015241; Tue, 19 Jan 2016 14:32:07 -0800 Received: from [172.19.74.182] (port=39720 helo=xsjalistai50.xlnx.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuC-0007gg-0a; Tue, 19 Jan 2016 14:37:40 -0800 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org> Date: Tue, 19 Jan 2016 14:35:13 -0800 Message-ID: <d2173a18bf2637c9e366ef09fab9b7611bed0a6c.1453237258.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <cover.1453237257.git.alistair.francis@xilinx.com> References: <cover.1453237257.git.alistair.francis@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-22054.006 X-TM-AS-Result: No--3.678-7.0-31-10 X-imss-scan-details: No--3.678-7.0-31-10 X-TMASE-MatchedRID: 1+eTE4anhiQD2WXLXdz+Ae3+iQEtoSj4wc9gNHV999+jxYyRBa/qJQJj 6WxgWJYb5MIx11wv+CPGVuWouVipclV5ZwmmXAMbcwqnarAEnpteSLVBjHVUFF8LTjLZ97WXzt1 5Ld/2yUak07fZjOlGWkvMiDwAkWzPMCt7oHqwXlcOfPb1Cbbiv/6/2/nZkihaOgB/fz3EXdcVKT 0eFRmfDs4YhafCzgujIdY9jOi4lTI= X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(229853001)(106466001)(19580395003)(71366001)(4326007)(5001960100002)(64026002)(105606002)(85426001)(2950100001)(19580405001)(118296001)(50226001)(47776003)(87936001)(76176999)(1220700001)(81156007)(36756003)(33646002)(77096005)(2906002)(50466002)(586003)(11100500001)(189998001)(92566002)(5003600100002)(86362001)(2351001)(110136002)(48376002)(5003940100001)(50986999)(5008740100001)(1096002)(6806005)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2NAM02HT072; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; PTR:unknown-60-96.xilinx.com; MX:1; A:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d6057cf3-d6ee-4146-50ec-08d32121250e X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BL2NAM02HT072; UriScan:(192813158149592); X-Microsoft-Antispam-PRVS: <857f7f485776429594a47392ae671f92@BL2NAM02HT072.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(5005006)(13017025)(13023025)(13024025)(8121501046)(13018025)(520078)(3002001)(10201501046); SRVR:BL2NAM02HT072; BCL:0; PCL:0; RULEID:; SRVR:BL2NAM02HT072; X-Forefront-PRVS: 0826B2F01B X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2016 22:37:42.3860 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.96]; Helo=[xsj-tvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT072 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.36.71 Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, alistair.francis@xilinx.com, crosthwaitepeter@gmail.com, edgar.iglesias@gmail.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH v2 08/16] bitops: Add ONES macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 8164225..27bf98d 100644 --- a/include/qemu/bitops.h +++ b/include/qemu/bitops.h @@ -430,4 +430,6 @@ static inline uint64_t deposit64(uint64_t value, int start, int length, return (value & ~mask) | ((fieldval << start) & mask); } +#define ONES(num) ((num) == 64 ? ~0ull : (1ull << (num)) - 1) + #endif