From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 05A743858C52 for ; Sat, 4 Feb 2023 02:58:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 05A743858C52 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-x62b.google.com with SMTP id g13so2318538ple.10 for ; Fri, 03 Feb 2023 18:58:23 -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=T+sc+cxajcxGTXg7yVnD6vOa0oZkaxbq0BuZp7vKst0=; b=AqP8bcvxEXxWqJEN92DK4otrvrXLMoHsuMAQtzxgGxb4v80KQ0pAfddCzgGbHFIsKJ lZwYBZPiDM/FbtU+dNXVpuT3wMb2zL6PxHzqGKLWjSzzr/r9Dmt2y0cgwzyQ+SO6c/Ip 7Dm1i/ZX8g/HlAmHDs8X8Mg3Or7Nct2JQuWHm/l9MblNKZxI/2u1pimJgGAvHrTZNgOK gSaJBsBV1rD7MUxoxpT8M4KFx1Ivtn0MgA70JML1BsM5wToMMepDF3UaYj1HBhxZ7A4c TkyFcueIAMUuSg7Xqfi0a8vxjh7D2DPCM5TvvMTwQdDVJ3o89nn6brM0NI8qoYPWdGPC H0Kg== 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=T+sc+cxajcxGTXg7yVnD6vOa0oZkaxbq0BuZp7vKst0=; b=xprAQSNe2lZLVIki9RTE75yhRDtmE1NAmdvs+1OmjhLjJ4XceZdMt2sMx3C9sLWtW7 UmZpKojWeZLqiyxLOz1L6CnPFH87SQLZjot8HifdLxGpt1x0pEpfuLrhLE/hwxA1zDaE 1k24fDoGE95+UQZV6ZJ5HPDHxsA0fUaCnT0TBHDCTLwIjCcTgxbPW0JcIfhRPS+AXL8R xN9yJkQmrR7iQdDJqQyZwxk9J8GIDFDWTb5lYkyxHtVUVszfWx8jSgEQYYdpnIdShmtm yJIn030mJBW9AoejGL15JHDmPtgHX6u1U9u4+zVcb49Af5IGH2X0MZ1VCHj7Rfs3Y7GW gHLQ== X-Gm-Message-State: AO0yUKU42bOfuc8VwpXjyV+kDIZxeqLFu39EE0uaQQlmyGLC7v7EqVP5 MbHoUfhV9HgPezBPwNJoMcuPXQ== X-Google-Smtp-Source: AK7set/0PY0+wOha+X/OX6j2F+P63SNVW7D3trnAkyFcw/1Wax5wREDewPvXr0oS6k0UjMWTZFYo7g== X-Received: by 2002:a17:90b:2241:b0:22b:bc63:c8b0 with SMTP id hk1-20020a17090b224100b0022bbc63c8b0mr13117905pjb.34.1675479502319; Fri, 03 Feb 2023 18:58:22 -0800 (PST) Received: from [192.168.50.177] (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id g5-20020a17090adac500b0022bb6d75a6fsm2337885pjx.15.2023.02.03.18.58.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Feb 2023 18:58:21 -0800 (PST) Message-ID: <631597d6-89d3-3748-11e2-4b5ef6238978@linaro.org> Date: Fri, 3 Feb 2023 16:58:18 -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 v12 06/31] string: Improve generic strchr Content-Language: en-US To: Adhemerval Zanella , libc-alpha@sourceware.org, Jeff Law , Xi Ruoyao , Noah Goldstein References: <20230202181149.2181553-1-adhemerval.zanella@linaro.org> <20230202181149.2181553-7-adhemerval.zanella@linaro.org> From: Richard Henderson In-Reply-To: <20230202181149.2181553-7-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 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/2/23 08:11, Adhemerval Zanella wrote: > New algorithm now calls strchrnul. > > Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc-linux-gnu, > and powerpc64-linux-gnu by removing the arch-specific assembly > implementation and disabling multi-arch (it covers both LE and BE > for 64 and 32 bits). > > Reviewed-by: Richard Henderson strchrnul needs libc_hidden_builtin_proto. On riscv64: 8: 00000097 auipc ra,0x0 8: R_RISCV_CALL_PLT __strchrnul 8: R_RISCV_RELAX *ABS* c: 000080e7 jalr ra # 8 <__GI_strchr+0x8> r~