Received: by 2002:ac8:6d01:0:b0:423:7e07:f8e4 with SMTP id o1csp6634366qtt; Mon, 18 Dec 2023 02:12:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjOZbG0/Ev4Hp4UGlJuz3vapMt6/+eZuV+AMqbWddQEClBoMj9uFwRFsC532kKhSHdEad+ X-Received: by 2002:a17:90a:b90:b0:28b:48:ffe4 with SMTP id 16-20020a17090a0b9000b0028b0048ffe4mr8898915pjr.36.1702894364914; Mon, 18 Dec 2023 02:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702894364; cv=none; d=google.com; s=arc-20160816; b=L01adASWkxlt23MxJU709I9e+CmvPpQ85CePWI5aA01iLM6wwQ03DQntazArKFDyBA tZZEKJR6vXOiBvJb4J9hHLAU0mcBrc7nKaLfPexNLCUr2v30l9IWZ1WrlNXZowIdBVD7 9HFtJiGZ0WPNk71VFxK7jGULjyyvdkT6j/eX90wBbXxluh5FFHQnaivHuoEg7pTvl+pm 6wE+x5qfoXmF+eKRbiAoVnMHBKX1KlPhIvGtVDrpxh10MXn6ax5p1zJK7MjEsSduF208 p3G90dOVUk9Gdr8EQCgDIb4QEA7H9byBN2sRGYD8eEp9HpxIGT1a4/PtOB95Tw/XPfBG IYkQ== 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=7Qak7Z1qmoReXAnhzkZM73nyhwG99b9/XE3Vl0uN3AY=; fh=oVjX24B+VH8muKPAgYA9AUUcWAqwirHcI+RgGShc97U=; b=jaaA2RerLOLIQk7x/GulzRODRoVYEyVpVJUDBoTF54ZBK3PD/hzBisTC0+RHnFU+QF BQwED3Mvsi0MYrZiUZxITWAgUaD9NMy0x7QsGeFVNPP5tJJXsFV1fAaFYFSxVwbBCrF/ d3JC5J1Ifd5pdNdWkFGGfsizPf4May52KMENrB+Ayl2yps1fb6C0g+aQPVoC77VsKrMH HbKvvx+/pzFKlDPiqH5CYhuAEHG79XuRINlwxp8hzqXaj83IfmkRLmt7A6rI6sTLL/BN AZiKITfa1CuBGH/xrI8UnAE7tbSqpAIPzmuCNZSBFg6CVssfWE7iWldw0J68MCQy3Fbw 64Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3302-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3302-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id pj3-20020a17090b4f4300b002869aab8f55si2869934pjb.52.2023.12.18.02.12.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 02:12:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3302-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3302-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3302-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DC486B21D5C for ; Mon, 18 Dec 2023 10:12:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEA0D134C6; Mon, 18 Dec 2023 10:12:27 +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.85.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 6766E14F9E for ; Mon, 18 Dec 2023 10:12:25 +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-52-2lOzyjfMNFygAJUXwze_iw-1; Mon, 18 Dec 2023 10:12:22 +0000 X-MC-Unique: 2lOzyjfMNFygAJUXwze_iw-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 18 Dec 2023 10:12:00 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 18 Dec 2023 10:12:00 +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+LCttqAAgACUUYCAAH5N8IAADeeAgAABdOA= Date: Mon, 18 Dec 2023 10:12:00 +0000 Message-ID: <9b0c5afd66454c39892898dc95e7302c@AcuMS.aculab.com> References: <20231213154530.1970216-1-ivan.orlov0322@gmail.com> <86d3947bce1f49c395224998e7d65dc2@AcuMS.aculab.com> In-Reply-To: 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 RnJvbTogSXZhbiBPcmxvdiANCj4gU2VudDogMTggRGVjZW1iZXIgMjAyMyAxMDowMw0KPiANCj4g T24gMTIvMTgvMjMgMDk6MjAsIERhdmlkIExhaWdodCB3cm90ZToNCj4gPiBGcm9tOiBJdmFuIE9y bG92DQo+ID4+IFNlbnQ6IDE4IERlY2VtYmVyIDIwMjMgMDE6NDINCj4gPj4NCj4gPj4gT24gMTIv MTcvMjMgMTc6MDAsIERhdmlkIExhaWdodCB3cm90ZToNCj4gPj4+IEknZCBhbHNvIGd1ZXNzIHRo YXQgcHJldHR5IG11Y2ggYWxsIHRoZSBjYWxscyBpbi1rZXJuZWwgYXJlIHNob3J0Lg0KPiA+Pj4g WW91IG1pZ2h0IHRyeSBjb3VudGluZyBhczogaGlzdG9ncmFtW2lsb2cyKHN0cmxlbl9yZXN1bHQp XSsrDQo+ID4+PiBhbmQgc2VlaW5nIHdoYXQgaXQgc2hvd3MgZm9yIHNvbWUgd29ya2xvYWQuDQo+ ID4+PiBJIGJldCB5b3UgKGEgYmVlciBpZiBJIHNlZSB5b3UhKSB0aGF0IHlvdSB3b24ndCBzZWUg bWFueSBvdmVyIDFrLg0KPiA+Pg0KPiA+PiBIaSBEYXZpZCwNCj4gPj4NCj4gPj4gSGVyZSBpcyB0 aGUgc3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