From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id B66E33858D38 for ; Fri, 27 Jan 2023 19:36:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B66E33858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-x630.google.com with SMTP id m2so1035009plg.4 for ; Fri, 27 Jan 2023 11:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PRI/SrLw5rhlmGqBWxpGSnzBfK2AUY8cgAAtPambbLM=; b=ysuRxag9Gt3aQ08tgprflAuIlpTQSABfynbSVf0fn0csST/0UVSk815PiIubcVs9ly Tp5WdRRPMS88i2A9/LYur3PrPXwvg3d68yFVXmVZALWckqx/LOm+QeMxUfBi+spPAz6c 3i6Xx7rWIkxkLCbQB/G/oS25PwJ3lauDMoan5CxG6nGTEYzVT05oYzUXPqqhvc+bQNWJ PCSGgWTd44y5c3BQkl81vEUz90dM5pv73BxrPTgVheKCCeHb+5TACKe+cSx38+kEKkv3 c80p+cO1qG+Q+JcZuRpA6O10zvJyWp5K9ipQGFJE7kSsccq26KZY1pMSVuX1NCXaG4Jc hwlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PRI/SrLw5rhlmGqBWxpGSnzBfK2AUY8cgAAtPambbLM=; b=ItWeq5JvW/M+IjkrtgYnAr5kPPI1ui+oqHR7ZY2mVNrmCRfwr3VVn8xGzPQzHS/Azu FqnUiCsjJeu27ibZABKSovPpdFqTNrfQTudm2P84FtVrVI6wi38fZcnMtz43LjUTL6GS Jay5CWvowZRUSHR89I9NU9ZD2e8hwusxB4bfR72gVJMmgqbifgIgPDyUtJO5CrzKIKxm AWhbDIKplyJ1FwqN96x3XP9h2BWwVgxK64N33hipMd3sWY4HLYRmX/IzYJKx9pbiWDMQ cWrpEyAM6VnjPmRMxGe+FttUMKKinOToAGXR5Yu1XawjgCAuM/ZgPWzhCkV1UvEuSI/p Caxw== X-Gm-Message-State: AO0yUKXZ3XB6wIDQBL1gbQJpHtNYr0UJW9Bx0z3sDnFXsfqRs0c6Cxww fk/5NVzoh0/xiwwozWtBJTBageMZt2xIZsF+ X-Google-Smtp-Source: AK7set+RUe5h0w95VgcgtXDjTF2LBJtlr3dK/aUc6iwyp4s7XLhEu4XVrK1HMAX43piMGDCVDci8ww== X-Received: by 2002:a17:903:1251:b0:196:f82:14b7 with SMTP id u17-20020a170903125100b001960f8214b7mr20508603plh.37.1674848214762; Fri, 27 Jan 2023 11:36:54 -0800 (PST) Received: from [192.168.50.174] (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id a4-20020a170902900400b001963a178dfcsm3219253plp.244.2023.01.27.11.36.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Jan 2023 11:36:54 -0800 (PST) Message-ID: <77f4a99a-f7ba-9e84-6ef5-cae4cf874707@linaro.org> Date: Fri, 27 Jan 2023 09:36:51 -1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v10 00/24] Improve generic string routines Content-Language: en-US To: Jeff Law , libc-alpha@sourceware.org References: <20230120211622.3445279-1-adhemerval.zanella@linaro.org> From: Richard Henderson In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 1/20/23 13:00, Jeff Law via Libc-alpha wrote: > You guys are making work for me! :) > > We've got hand-written RISC-V implementations of various str* and mem* routines that I > nearly asked to get merged for glibc-2.37.  I held off thinking that there wasn't much > benefit to including it in 2.37 vs 2.38.  Bad call on my part! In that you'll want to benchmark your hand-written code vs the new generic code with a string-fza.h file for riscv-zbb (orc.b) or xtheadbb (th.tstnbz)? After the benchmarking, I'm hoping you'll find that some of the hand-written code is no longer needed, and therefore won't accrue a maintenance burden going forward. r~