Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp566638imw; Wed, 13 Jul 2022 04:05:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZoOL0TJZqDZvLMad6IR+g4lTAHaaQgySsLW0KgBF31OFoJHxY1Z4qhUwqYthxz/BKy+lT X-Received: by 2002:aa7:c683:0:b0:43a:13fe:9c69 with SMTP id n3-20020aa7c683000000b0043a13fe9c69mr3984686edq.353.1657710317704; Wed, 13 Jul 2022 04:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657710317; cv=none; d=google.com; s=arc-20160816; b=HM56ZH3RQMvMyDEjfLyScMOCaIqBBtpjYmd0nhJ2/u5K+XObPYAf/DIhHM1tlFYP72 QdEq6WlyUnP28xXUA5pnSpDEdvfAjZze7jAyd6awg3tTDmf5MmhRlKSJbMsZwOBmFL7y C1QfFoojCEs+c20BpsE2BVQr8WPHDQxdmL4RN2nibgZotOjadpnyRetCcUJW+bcGWgGk o++lGP6uRk2v6BX5CMkHoO7fqX0VL7qYF3bCEutcyvRo59XaIiLCBYcSPxfKYc7itqSC yuCjb957cCoft04xUnOGavgik44dNMv+l1K1VbvNS2MzzLzxsL3ptC+XSUmF45z6uWUd sHXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=U5bljeyZ0Yv3jH2AXr6NoNPx30VAwv0T4RbrI1b/xXc=; b=OGHSpSGnKYvXndE+yzdpXzBuZBB8SSfxdi7ql6he86dy5IHs/5c6KaiIZLPtPKUyP9 RA7T4ZgiF5fKYblteyCfoe0O8WWlHxqSgoYZMGVTsRSgTFepHUo3ykUmxp+HPt2bA+ub 16BvGa+CLKQbbdQOXTYLo0fTXrR5Dii5OIAA9opH81FC+NsQ0Bz1Pwsu/nxc4hbVUhA/ BY2XNsQfG4yVVqUlnBZhpC8yCUobNlrfwfH7NwY8HYeiAGkTDEqGOIYonG23owjF0l2G k1ur1/BVm2dLvopyNSLhvAZSgL2KtIQOW6D4Mt5b7YGSD3u0V1uH1GkhRor7EjexckG7 FzXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a056402060100b0042dd469b483si17368411edv.146.2022.07.13.04.04.37; Wed, 13 Jul 2022 04:05:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235845AbiGMKYX (ORCPT + 99 others); Wed, 13 Jul 2022 06:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234823AbiGMKYV (ORCPT ); Wed, 13 Jul 2022 06:24:21 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0993DBD6AA for ; Wed, 13 Jul 2022 03:24:19 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-219-CLD2JCRYMxC7Om6KS1TDPw-1; Wed, 13 Jul 2022 11:24:17 +0100 X-MC-Unique: CLD2JCRYMxC7Om6KS1TDPw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Wed, 13 Jul 2022 11:24:15 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.036; Wed, 13 Jul 2022 11:24:15 +0100 From: David Laight To: 'Andrey Semashev' , 'Yu-Jen Chang' CC: "andy@kernel.org" , "akinobu.mita@gmail.com" , Ching-Chun Huang , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/2] lib/string.c: Optimize memchr() Thread-Topic: [PATCH 2/2] lib/string.c: Optimize memchr() Thread-Index: AQHYlf/m+SYzYfFyd0Sny8eSVHr68K18CeuggAAJgkmAAAQUQA== Date: Wed, 13 Jul 2022 10:24:15 +0000 Message-ID: <658586b208ea4339b3ead19378484434@AcuMS.aculab.com> References: <20220710142822.52539-1-arthurchang09@gmail.com> <20220710142822.52539-3-arthurchang09@gmail.com> <3a1b50d2-a7aa-3e89-56fe-5d14ef9da22f@gmail.com> <48db247e-f6fd-cb4b-7cc5-455bf26bb153@gmail.com> <49a8be9269ee47de9fc2d0d7f09eb0b1@AcuMS.aculab.com> <5d14cf64-46b7-dc37-bbb8-dd6be82d06af@gmail.com> <999057a9-d209-323b-90eb-5756b7c0e91e@gmail.com> In-Reply-To: <999057a9-d209-323b-90eb-5756b7c0e91e@gmail.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQW5kcmV5IFNlbWFzaGV2DQo+IFNlbnQ6IDEzIEp1bHkgMjAyMiAxMTowMw0KPiANCj4g T24gNy8xMy8yMiAxMjo0OSwgQW5kcmV5IFNlbWFzaGV2IHdyb3RlOg0KPiA+IE9uIDcvMTMvMjIg MTI6MzksIERhdmlkIExhaWdodCB3cm90ZToNCj4gPj4gRnJvbTogWXUtSmVuIENoYW5nDQo+ID4+ PiBTZW50OiAxMiBKdWx5IDIwMjIgMTU6NTkNCj4gPj4gLi4uDQo+ID4+Pj4gSSB0aGluayB5b3Un cmUgbWlzc2luZyB0aGUgcG9pbnQuIExvYWRzIGF0IHVuYWxpZ25lZCBhZGRyZXNzZXMgbWF5IG5v dA0KPiA+Pj4+IGJlIGFsbG93ZWQgYnkgaGFyZHdhcmUgdXNpbmcgY29udmVudGlvbmFsIGxvYWQg aW5zdHJ1Y3Rpb25zIG9yIG1heSBiZQ0KPiA+Pj4+IGluZWZmaWNpZW50LiBHaXZlbiB0aGF0IHRo aXMgbWVtY2hyIGltcGxlbWVudGF0aW9uIGlzIHVzZWQgYXMgYSBmYWxsYmFjaw0KPiA+Pj4+IHdo ZW4gbm8gaGFyZHdhcmUtc3BlY2lmaWMgdmVyc2lvbiBpcyBhdmFpbGFibGUsIHlvdSBzaG91bGQg YmUNCj4gPj4+PiBjb25zZXJ2YXRpdmUgd3J0LiBoYXJkd2FyZSBjYXBh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