From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29971 invoked by alias); 3 Jan 2018 16:08:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 29946 invoked by uid 89); 3 Jan 2018 16:08:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qk0-f174.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=N8q+fbF6IJwkZpT1NhOw2KQ0K896nGg2GsNNReFjBVw=; b=f2Xr+ZVzUKurH4ncugwVI+7cPfTlg78kB9TACg8so7GMv65L16guAjVzjB4nsix8w4 uc53Ft3+J9qA1fE88Z4ZRL71ALysQF296WP749DqLSU35KfxZDS11Rkm4tljOSsP45xc 87MhSoPNXQ6J5ielKQENWYIL12y+j7ratCQz6QcQNYkQ/6QW1RoTC5qXjST7YW8maJA2 nVDsfsnEg8XrMIE7LQqcVUfL06QJjH8An7k/SDtMvSfb1lSwcn72UIo1j9z+ZrvJ42ZH vEDBqWrmnDVEmxa1hwzx1vOPt4C71DgO7lSP189qYMnpBmcVkaV3ngsyUnLs9nBYtiO5 V/wg== X-Gm-Message-State: AKGB3mKBBsjA3KjYweg/AAjPvNGsPgon9z5Kr9SA8mkR0v9otKRMDU/l WTHLlZBc1KQ90xlMkl0NlIl+b5uvWRc= X-Google-Smtp-Source: ACJfBotbpkHGy/P2YRfTkQuxzz2XCnjddd3Q5P8RzqLWPAoye8A4mxwmp9aZwYqO7w42mpPISR2i7w== X-Received: by 10.55.171.17 with SMTP id u17mr2161917qke.340.1514995696956; Wed, 03 Jan 2018 08:08:16 -0800 (PST) Subject: Re: [PATCH v2 05/15] RISC-V: Generic Routines To: Joseph Myers Cc: libc-alpha@sourceware.org References: <5b973b74-f3aa-4525-a548-b0bc9ca95208@linaro.org> From: Adhemerval Zanella Message-ID: Date: Wed, 03 Jan 2018 16:08:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-01/txt/msg00107.txt.bz2 On 03/01/2018 14:02, Joseph Myers wrote: > On Wed, 3 Jan 2018, Adhemerval Zanella wrote: > >> Another thing I would like to check before submitting for 2.28 is a way to >> add a generic index_last_/index_fist_ without using __builtin_{clzl,ctzl}. >> On some architectures it is implemented by a libgcc call and calling a >> function call pretty much defeat the optimizations done (I added a generic >> one for SH). > > Maybe a configure test should check whether those use a libgcc function, > so the default can be set based on that? > Yes that is one option I have in mind.