From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,T_DKIMWL_WL_HIGH shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 5C2EA1F403 for ; Fri, 15 Jun 2018 18:27:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756449AbeFOS1p (ORCPT ); Fri, 15 Jun 2018 14:27:45 -0400 Received: from mail-co1nam03on0097.outbound.protection.outlook.com ([104.47.40.97]:63424 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756494AbeFOS1n (ORCPT ); Fri, 15 Jun 2018 14:27:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C49KQLhfngc0FbG4fZVgUb47Fh7H77OzjCI/k9kSMEE=; b=C1yx0uz7eJfAqbqwA+hWb6BccJw4wjh7Mr6k9m1fJC60TToWRPSNh/RMn+D71dkiXLQKEaFtpRrfm4Q5JKUF9KuYsivinxADfdGtzQ/WGGzWnXaoMPjTiyAfeQyltayHRtWY1avPX7Sxl2rL+/5dismf/ZjoNwiYG2O5mh4kh5E= Received: from BL0PR2101MB1011.namprd21.prod.outlook.com (52.132.24.10) by BL0PR2101MB1041.namprd21.prod.outlook.com (52.132.23.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.1; Fri, 15 Jun 2018 18:27:41 +0000 Received: from BL0PR2101MB1011.namprd21.prod.outlook.com ([fe80::d1f2:1d69:2567:e0a9]) by BL0PR2101MB1011.namprd21.prod.outlook.com ([fe80::d1f2:1d69:2567:e0a9%2]) with mapi id 15.20.0884.004; Fri, 15 Jun 2018 18:27:41 +0000 From: Derrick Stolee To: "git@vger.kernel.org" CC: "peff@peff.net" , "gitster@pobox.com" , "ramsay@ramsayjones.plus.com" , Derrick Stolee Subject: [PATCH v2 2/7] ewah/bitmap.c: delete unused 'bitmap_each_bit()' Thread-Topic: [PATCH v2 2/7] ewah/bitmap.c: delete unused 'bitmap_each_bit()' Thread-Index: AQHUBNaLG20fXzmCQUeaK+7HOVaaiQ== Date: Fri, 15 Jun 2018 18:27:41 +0000 Message-ID: <20180615182727.172075-3-dstolee@microsoft.com> References: <20180615143018.170686-1-dstolee@microsoft.com> <20180615182727.172075-1-dstolee@microsoft.com> In-Reply-To: <20180615182727.172075-1-dstolee@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BN6PR10CA0027.namprd10.prod.outlook.com (2603:10b6:404:109::13) To BL0PR2101MB1011.namprd21.prod.outlook.com (2603:10b6:207:37::10) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2001:4898:8010:0:eb4a:5dff:fe0f:730f] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1041;7:3WLh0oQ4MvHBO4Id2nsIrNNaRN8bzfKnHdk7ibWVq9T+S+kt/fNF/4z0Gk7rY+dPWXdKMIEA3RmGig9nivzE+O5uJIsrMMhwhP1aJbsSV9e4o3F7nIhO+iidH2URCwuVmRRrDMPm5gXIvvKeWh1auNIrCy7mVB0LM3xE5c0mxhiARcAVCEpvMTk/7d5odzRmhAiWs2QvyJ8GZgjo40jOWSiyva0cnKayN57Pa0S2BHXbwp1uCNgByK3onpJOkFHD x-ms-office365-filtering-correlation-id: 203ca0e9-4b43-4f0e-0f84-08d5d2edadfa x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7193020);SRVR:BL0PR2101MB1041; x-ms-traffictypediagnostic: BL0PR2101MB1041: authentication-results: spf=none (sender IP is ) smtp.mailfrom=dstolee@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(2018427008)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:BL0PR2101MB1041;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1041; x-forefront-prvs: 0704670F76 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(39860400002)(366004)(346002)(376002)(189003)(199004)(8656006)(2351001)(6116002)(99286004)(6512007)(5250100002)(46003)(52116002)(1730700003)(76176011)(305945005)(7736002)(10090500001)(1076002)(68736007)(2900100001)(8676002)(5660300001)(86362001)(86612001)(2501003)(6916009)(54906003)(486006)(446003)(97736004)(386003)(2906002)(6486002)(6506007)(53936002)(11346002)(107886003)(3280700002)(81166006)(3660700001)(81156014)(316002)(10290500003)(8936002)(22452003)(106356001)(2616005)(25786009)(102836004)(476003)(105586002)(5640700003)(6436002)(14454004)(36756003)(186003)(4326008)(478600001)(22906009);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1041;H:BL0PR2101MB1011.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: XK4lh0PJ4CJn+2YZylGKVvGWTPx8OpKQwXmu/2T6u5LVXSq090MnC1n4NOKr3arvb6hxUEIcf1BdstUKDO4Ge3T1OEnUV8xopwUqZUeQ5ZDVXMFCxPDLbYKptyGQsTxTiNBGJeddOUo55dT3i+8aBXqS6ZsH9BbpvEXSxoazm3MbwKRI4zCTt6P9AEp2dkN/ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 203ca0e9-4b43-4f0e-0f84-08d5d2edadfa X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2018 18:27:41.5314 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1041 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Reported-by: Ramsay Jones Signed-off-by: Derrick Stolee --- ewah/bitmap.c | 24 ------------------------ ewah/ewok.h | 1 - 2 files changed, 25 deletions(-) diff --git a/ewah/bitmap.c b/ewah/bitmap.c index d61dc6114a..52f1178db4 100644 --- a/ewah/bitmap.c +++ b/ewah/bitmap.c @@ -129,30 +129,6 @@ void bitmap_or_ewah(struct bitmap *self, struct ewah_b= itmap *other) self->words[i++] |=3D word; } =20 -void bitmap_each_bit(struct bitmap *self, ewah_callback callback, void *da= ta) -{ - size_t pos =3D 0, i; - - for (i =3D 0; i < self->word_alloc; ++i) { - eword_t word =3D self->words[i]; - uint32_t offset; - - if (word =3D=3D (eword_t)~0) { - for (offset =3D 0; offset < BITS_IN_EWORD; ++offset) - callback(pos++, data); - } else { - for (offset =3D 0; offset < BITS_IN_EWORD; ++offset) { - if ((word >> offset) =3D=3D 0) - break; - - offset +=3D ewah_bit_ctz64(word >> offset); - callback(pos + offset, data); - } - pos +=3D BITS_IN_EWORD; - } - } -} - size_t bitmap_popcount(struct bitmap *self) { size_t i, count =3D 0; diff --git a/ewah/ewok.h b/ewah/ewok.h index 2d25e93b9e..71704ed37f 100644 --- a/ewah/ewok.h +++ b/ewah/ewok.h @@ -217,7 +217,6 @@ void bitmap_and_not(struct bitmap *self, struct bitmap = *other); void bitmap_or_ewah(struct bitmap *self, struct ewah_bitmap *other); void bitmap_or(struct bitmap *self, const struct bitmap *other); =20 -void bitmap_each_bit(struct bitmap *self, ewah_callback callback, void *da= ta); size_t bitmap_popcount(struct bitmap *self); =20 #endif --=20 2.18.0.rc1