Received: by 2002:ac8:6d01:0:b0:423:7e07:f8e4 with SMTP id o1csp6616741qtt; Mon, 18 Dec 2023 01:29:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRwbuLsYRxNGyVCaj14XpAJE/4z1g3JoAiG658VsilYyNVx0nkwPXipeqIG2rk9hgGx9Oc X-Received: by 2002:a05:6830:3115:b0:6da:6200:e427 with SMTP id b21-20020a056830311500b006da6200e427mr2431959ots.18.1702891756172; Mon, 18 Dec 2023 01:29:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702891756; cv=none; d=google.com; s=arc-20160816; b=fscGcx1ouhBY2Grbg0mhP7p5l/vh5fKv7Lw5XKQX4u0N1caCirUSUUpvCEuhWXJyEM d3umt1LP/rg4jlXT+Y22p3mVAlCrl5P9+YBaMy593KZWJMbnx5KvO6q2GgMCD08x0IVv PdsHcZbDIoTRl+XkwYQI9k/i2iliXKRRAqhNwqff2kD35kQHf9HPAVWffLEa0dXU62F/ csm7DDapX/K8RcQeWDnq7rncAqaL0lI0yn+Y4xBv/JA0en+FR4TYFXS5c5Ty5JuovFSP iYksxAtoujRLc78VzDkTofQhUdE/2tZBOzBHfb75lfamQ2g54DY9vvKrewMTsXTGPYHY i08w== 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=TYrOCKremrJGZ8UApWvDrV+W2e02gQlNt9F943be/io=; fh=oVjX24B+VH8muKPAgYA9AUUcWAqwirHcI+RgGShc97U=; b=axxe7TTRAaxJabVAPTAl/4eOl+AlC4n/pAM823JiKc/O1VmTpO2THueHplS9VJSxYR Ttr+07cii9vRMMp+0Ht8scvz9A9H9Y7ClTF7lsvbJVR9qJS3WP2pHL303ihLkQbpE9rC xs88OgI8qo15gVhtgbuGNSq6ICHewiKQKldRxsXxV5mAUlV3zuL30nhb7PCMGU62ok9+ ZtGD+wW1elhUdNQdGXd+r0Ukf4sd7+meqW5lQuGBFiGO4Go5M6KKzZmBhXId8cT5+fTG HfINrm8p/Pao2HLOUfoRTTJN/9NNjjaSZkDKaSw9MDV0OxFdyNaIOi7ecGEdd19QB8ty FO8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3238-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j4-20020a056a00234400b006cec976aba9si17562050pfj.323.2023.12.18.01.29.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 01:29:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3238-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 D03E62839D7 for ; Mon, 18 Dec 2023 09:21:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CC9111721; Mon, 18 Dec 2023 09:21:15 +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 9F8CC11701 for ; Mon, 18 Dec 2023 09:21:12 +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-285-PaRQjW_lPcubI0-3L44Cyg-1; Mon, 18 Dec 2023 09:21:09 +0000 X-MC-Unique: PaRQjW_lPcubI0-3L44Cyg-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:20:47 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 18 Dec 2023 09:20:47 +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+LCttqAAgACUUYCAAH5N8A== Date: Mon, 18 Dec 2023 09:20:47 +0000 Message-ID: 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 RnJvbTogSXZhbiBPcmxvdg0KPiBTZW50OiAxOCBEZWNlbWJlciAyMDIzIDAxOjQyDQo+IA0KPiBP biAxMi8xNy8yMyAxNzowMCwgRGF2aWQgTGFpZ2h0IHdyb3RlOg0KPiA+IEknZCBhbHNvIGd1ZXNz IHRoYXQgcHJldHR5IG11Y2ggYWxsIHRoZSBjYWxscyBpbi1rZXJuZWwgYXJlIHNob3J0Lg0KPiA+ IFlvdSBtaWdodCB0cnkgY291bnRpbmcgYXM6IGhpc3RvZ3JhbVtpbG9nMihzdHJsZW5fcmVzdWx0 KV0rKw0KPiA+IGFuZCBzZWVpbmcgd2hhdCBpdCBzaG93cyBmb3Igc29tZSB3b3JrbG9hZC4NCj4g PiBJIGJldCB5b3UgKGEgYmVlciBpZiBJIHNlZSB5b3UhKSB0aGF0IHlvdSB3b24ndCBzZWUgbWFu eSBvdmVyIDFrLg0KPiANCj4gSGkgRGF2aWQsDQo+IA0KPiBIZXJlIGlzIHRoZSBzdGF0aXN0aWNz IGZvciBzdHJsZW4gcmVzdWx0Og0KPiANCj4gWyAgMjIzLjE2OTU3NV0gQ2FsbHMgY291bnQgZm9y IDJeMDogNjE1MA0KPiBbICAyMjMuMTczMjkzXSBDYWxscyBjb3VudCBmb3IgMl4xOiAxODQ4NTIN Cj4gWyAgMjIzLjE3NzE0Ml0gQ2FsbHMgY291bnQgZm9yIDJeMjogMzEzODk2DQo+IFsgIDIyMy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