Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp506744imw; Wed, 13 Jul 2022 02:46:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vS9R40Ox55y8e7mARQtpj9pGGs7PMMRA7mau0QyuIDUJyj8mk0E9rOE9U6JpGJEhHAhAbN X-Received: by 2002:a17:90b:240b:b0:1ef:8a68:1596 with SMTP id nr11-20020a17090b240b00b001ef8a681596mr2852941pjb.234.1657705578685; Wed, 13 Jul 2022 02:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657705578; cv=none; d=google.com; s=arc-20160816; b=s8A3ttzN2EvYXvjPHJ9VrY36RRCZIP/YwTfa02ldty9Xid16ZwBf5fp7s9kXZ1aN3v rKw9NNKTd6mmjuNn4FWjUTGzyHhjc5yRxMNDvoMGXhZ30XDq5rJKWkwBVwLB2Fr5koHb 9PWFbO+4CWy9rs9Lp8DTEIItBhd0+1u7TB8QWjP9fnal84wVDfdTiUTfZczKZev4ttyU sT9l7/Qc6M/5LuC9xsLILN2jaLhPipEF4JJggGIbEPPUtNY6mZ6A+x0+YXLRgE2c7Fgt +zo1HQZUEDObtIIrhfs80oCxBuYJpq2TmHQIMe8DyeCArjzev8BSYkwig1jED7nkLiND 78jg== 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=li1DHyWXogOPOPxp106dcpJCk+Qn8RM5N/ZDp4chaAk=; b=wvBQ6mXqHYHAqV7hjXaMhSHMjTNsKpy4kwL3XksN5lWI3SCKPEVGR3gfbG0q7vIS01 Zk1JwgD1hmNVFb/ZPH/9t1qCJ2STTw5mHDU1ZL7mrrg0OJeJn+qVB3wB7t+tCN6ng7MH w2yD6B1rANX+e6CTTZYoLm4ywfHHcisT/Tox5VoIPms30wdJ0QKn5PZvO5SXwXWij8EP lRFH148Wwq8Goh4kYv3QAfJRJhqrl5NBaNIji5X0imGHFkDmy6mmxhWBJS1I6ZCsY/4s KWWUKhUCWcsv5MD0130KzniVbKXb49/wO8th4KVHNwqWA6T/5x/PUmCDGIEnzReC0Dq7 /GAQ== 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 h6-20020a056a00230600b0052abb922770si18431133pfh.362.2022.07.13.02.46.06; Wed, 13 Jul 2022 02:46:18 -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 S236156AbiGMJj7 (ORCPT + 99 others); Wed, 13 Jul 2022 05:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236101AbiGMJj5 (ORCPT ); Wed, 13 Jul 2022 05:39:57 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6E0E6F54F3 for ; Wed, 13 Jul 2022 02:39:54 -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-220-jNhFV5uvMoyY8ZVNPGX1qw-1; Wed, 13 Jul 2022 10:39:48 +0100 X-MC-Unique: jNhFV5uvMoyY8ZVNPGX1qw-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 10:39:43 +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 10:39:43 +0100 From: David Laight To: 'Yu-Jen Chang' , Andrey Semashev 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+SYzYfFyd0Sny8eSVHr68K18Ceug Date: Wed, 13 Jul 2022 09:39:43 +0000 Message-ID: <49a8be9269ee47de9fc2d0d7f09eb0b1@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> In-Reply-To: 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 RnJvbTogWXUtSmVuIENoYW5nDQo+IFNlbnQ6IDEyIEp1bHkgMjAyMiAxNTo1OQ0KLi4uDQo+ID4g SSB0aGluayB5b3UncmUgbWlzc2luZyB0aGUgcG9pbnQuIExvYWRzIGF0IHVuYWxpZ25lZCBhZGRy ZXNzZXMgbWF5IG5vdA0KPiA+IGJlIGFsbG93ZWQgYnkgaGFyZHdhcmUgdXNpbmcgY29udmVudGlv bmFsIGxvYWQgaW5zdHJ1Y3Rpb25zIG9yIG1heSBiZQ0KPiA+IGluZWZmaWNpZW50LiBHaXZlbiB0 aGF0IHRoaXMgbWVtY2hyIGltcGxlbWVudGF0aW9uIGlzIHVzZWQgYXMgYSBmYWxsYmFjaw0KPiA+ IHdoZW4gbm8gaGFyZHdhcmUtc3BlY2lmaWMgdmVyc2lvbiBpcyBhdmFpbGFibGUsIHlvdSBzaG91 bGQgYmUNCj4gPiBjb25zZXJ2YXRpdmUgd3J0LiBoYXJkd2FyZSBjYXBhYmlsaXRpZXMgYW5kIGJl aGF2aW9yLiBZb3Ugc2hvdWxkDQo+ID4gcHJvYmFibHkgaGF2ZSBhIHByZS1hbGlnbm1lbnQgbG9v cC4NCj4gDQo+IEdvdCBpdC4gSSBhZGQgIHByZS1hbGlnbm1lbnQgbG9vcC4gSXQgYWxpZ25zIHRo ZSBhZGRyZXNzIHRvIDggb3IgNGJ5dGVzLg0KDQpUaGF0IHNob3VsZCBiZSBwcmVkaWNhdGVkIG9u ICFIQVNfRUZGSUNJRU5UX1VOQUxJR05FRF9BQ0NFU1MuDQoNCi4uLg0KPiAgICAgICAgIGZvciAo OyBwIDw9IGVuZCAtIDg7IHAgKz0gOC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