From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 98FAA3858422 for ; Wed, 1 Feb 2023 17:38:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 98FAA3858422 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-pj1-x1029.google.com with SMTP id m11so18035883pji.0 for ; Wed, 01 Feb 2023 09:38:10 -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=Nai24F2CppD0FZPkl2cOocBs+Q0HWXQ1PoAW3mvQ3DY=; b=hK+8YSAIJ8UD5tgQgdpilvMAL/pumrab5h2pWIJBhfrKU/da6tn67xXfM3/w3KVm/p YMVZDq66MnhiB4oL8tLMao41+H08kUzllLN5tmYYfBfNa3J27Y9i68HKGDOzWQ0t2HI2 oryngI6R0yLkBnDqApTlCjeCKsgrjIaZXRNVyoJ2HT1bjSzC/wyeAT8JVVwGmjLGT49y gC41z5NFXVROYA5ojk0YsmH0niaoXuSzyAMaTGqUxs2oJpjWAWfEeDbCVJQTnNEYKcyN RM5tS8DG79dc8jtED4X2PuzuOavTORsQuAGEeyOWlW8p3AXm9rg62dQkq9AC8hITtxBW G9SQ== 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=Nai24F2CppD0FZPkl2cOocBs+Q0HWXQ1PoAW3mvQ3DY=; b=pbA1t9oCE3BYcFbVAd8BXpetHQpu1qTkuNg6lDNpf3CpNXh8ehh8jTfPplddyL+gf2 wmrev5UM+anHMAQcjELYmW7TtIR1TeuHMJysCieUlVRhB+yVEW5y+sQFmGxSJdjp+J45 paLPoX4vc5gxY051qcG30enNc2Vin9r3BJBXIDWmYrP0r1tmmbMQTc1EeBgLFJZrx+ij Ed7CSwGd1KsD/NUEdSMAliqKdpTtX0plJbYLTkdnIqWANcgw80a/Q/yK28pmlJtfySXp t5w6juSdTGPyoMKk7/2KFGqAQKSj5gXPstqBeURKkx09cgfXZ5x/AB1Ft8gHCHm5GZnF FwBA== X-Gm-Message-State: AO0yUKVuAw6gEJTZpvc7WmUxD0ZRHzINczEjSxuY24wlW6ZexmaL8YWS tavFBsArh4BsdSwMaOX8h+fivA== X-Google-Smtp-Source: AK7set8b6q7sxSBJqS0y4amDdHGP5CKdJBYjzn2iywUzQXfsi951CvQhvtTRQuCBvQ8eeSbz4+3J/w== X-Received: by 2002:a17:903:1cc:b0:196:63d0:a674 with SMTP id e12-20020a17090301cc00b0019663d0a674mr4653842plh.9.1675273089643; Wed, 01 Feb 2023 09:38:09 -0800 (PST) Received: from [192.168.50.50] (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id jd13-20020a170903260d00b0019893d572bfsm4161838plb.211.2023.02.01.09.38.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Feb 2023 09:38:09 -0800 (PST) Message-ID: <669e4d8b-121c-c2a5-ba60-8f1abf0a572e@linaro.org> Date: Wed, 1 Feb 2023 07:38:06 -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 v11 11/29] string: Improve generic strcpy Content-Language: en-US To: Adhemerval Zanella , libc-alpha@sourceware.org, Noah Goldstein , Jeff Law , Xi Ruoyao References: <20230201170406.303978-1-adhemerval.zanella@linaro.org> <20230201170406.303978-12-adhemerval.zanella@linaro.org> From: Richard Henderson In-Reply-To: <20230201170406.303978-12-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 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 2/1/23 07:03, Adhemerval Zanella wrote: > Now that stpcpy is vectorized based on op_t, it should be better to > call it instead of strlen plus memcpy. > > Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc64-linux-gnu, > and powerpc-linux-gnu by removing the arch-specific assembly > implementation and disabling multi-arch (it covers both LE and BE > for 64 and 32 bits). > --- > string/strcpy.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Richard Henderson r~