Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp135501rdb; Mon, 18 Dec 2023 01:14:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeK6VRLk44sCm4F2v36cSrOMsLvGClsdBo1ZahGEqpvSimqi0qS2H8ytfXWH0gy9pCXtJS X-Received: by 2002:a05:6a00:4613:b0:6cd:dc48:1fff with SMTP id ko19-20020a056a00461300b006cddc481fffmr22632955pfb.0.1702890864872; Mon, 18 Dec 2023 01:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702890864; cv=none; d=google.com; s=arc-20160816; b=YTYu3JSsv7NkQ1MiJyHp0YewQACubA5pWiXTuFalmyh1f116HajO3KudtE0YdzFhjI oFNIl1myYOjgf6MCSV3VcydDEssjHAJ6T63ioMkRUJR8oeUvu5CFkfaS7hnzfMnTC1e8 2cgNKFKs8IZzh7JUs78GceIQzxH2yHOjmfj5plqXTWs7mQr/xNRpvdj1oY9mgbVLOI9R GOHWhzjWyAETJjMGuSrtQb2we7v/Q113x2AEGGqVTBOvbTCJFsQuMT+kREB76AZ7E6l3 0vuMAG2WCbd+Mh/LM0Lawv+0fK3vK/c4MFOhIcqA/cN1kh4nDHr4DKgJBJEwOgKj6mO/ 0Nvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=q6yN9ALYC4mT5hp6x191ayKGM1lshWyq1RyuFba6fWs=; fh=oVjX24B+VH8muKPAgYA9AUUcWAqwirHcI+RgGShc97U=; b=JcaFb1T2pFlJrx5UgpCcgpzrIwOmJISu4vc9+GYLUDEeVGA4qz+RcFyD9yukNjjEze CRGjPCvBbn8H72Ncr7mAguMraz3axCNa5IXg/LimwlVx0L8XGW26i49g1fpROyySagSU /Z1GJPDWyflaAJyCzlS6msjL41rs1bIYQwZfj9jaD03Xkzzuos2tFdCB6OGl5mC0HBRC AQe9PLJhNPv59rl3eeea1nGZPperBKUcGZp/daGnwDa8WMai1eWItQhyZefwdIU6OfmG ESJrdJGbAkOgdByYU8eLy9P9VXzf+O8ibWhzaeyWbUTe4UVYtqzVT01rLkEl9ZYojErC 6dGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3234-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j9-20020a056a00174900b006ce61c266e3si17473020pfc.318.2023.12.18.01.14.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 01:14:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3234-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3234-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A46F2283A90 for ; Mon, 18 Dec 2023 09:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98CD012E73; Mon, 18 Dec 2023 09:13:07 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 462BD134A1 for ; Mon, 18 Dec 2023 09:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-269-EFmJvLQYPUOJ2E6UmrH6ng-1; Mon, 18 Dec 2023 09:12:58 +0000 X-MC-Unique: EFmJvLQYPUOJ2E6UmrH6ng-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 18 Dec 2023 09:12:36 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 18 Dec 2023 09:12:36 +0000 From: David Laight To: 'Ivan Orlov' , "paul.walmsley@sifive.com" , "palmer@dabbelt.com" , "aou@eecs.berkeley.edu" CC: "conor.dooley@microchip.com" , "ajones@ventanamicro.com" , "samuel@sholland.org" , "alexghiti@rivosinc.com" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "skhan@linuxfoundation.org" Subject: RE: [PATCH] riscv: lib: Optimize 'strlen' function Thread-Topic: [PATCH] riscv: lib: Optimize 'strlen' function Thread-Index: AQHaLduBo9lhsHug1EOTPi9OJpSM+LCtyBWAgABcPYCAAKHfoA== Date: Mon, 18 Dec 2023 09:12:36 +0000 Message-ID: <6aa468db18c04ad39e46612b343b2a60@AcuMS.aculab.com> References: <20231213154530.1970216-1-ivan.orlov0322@gmail.com> <45351e30-d197-4b9c-864f-8ff5f9b6ab61@gmail.com> In-Reply-To: <45351e30-d197-4b9c-864f-8ff5f9b6ab61@gmail.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 RnJvbTogSXZhbiBPcmxvdg0KPiBTZW50OiAxNyBEZWNlbWJlciAyMDIzIDIzOjIzDQo+IA0KPiBP biAxMi8xNy8yMyAxODoxMCwgRGF2aWQgTGFpZ2h0IHdyb3RlOg0KPiA+IEZyb206IEl2YW4gT3Js b3YNCj4gPj4gU2VudDogMTMgRGVjZW1iZXIgMjAyMyAxNTo0Ng0KPiA+DQo+ID4gTG9va2luZyBh dCB0aGUgb2xkIGNvZGUuLi4NCj4gPg0KPiA+PiAgIDE6DQo+ID4+IC0JbGJ1CXQwLCAwKHQxKQ0K PiA+PiAtCWJlcXoJdDAsIDJmDQo+ID4+IC0JYWRkaQl0MSwgdDEsIDENCj4gPj4gLQlqCTFiDQo+ ID4NCj4gPiBJIHN1c3BlY3QgdGhlcmUgaXMgKGF0IGxlYXN0KSBhIHR3byBjbG9jayBzdGFsbCBi ZXR3ZWVuDQo+ID4gdGhlICdsZHUnIGFuZCAnYmVxeicuDQo+IA0KPiBIbW0sIHRoZSBzdGFsbCBl eGlzdHMgZHVlIHRvIG1lbW9yeSBhY2Nlc3M/IFdoeSBkb2VzIHR3byBzdWJzZXF1ZW50DQo+IGFj Y2Vzc2VzIHRvIHRoZSBtZW1vcnkgKGFzIGluIHRoZSBleGFtcGxlIHlvdSBwcm92aWRlZCkgZG8g dGhlIHRyaWNrP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