From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17694 invoked by alias); 12 Jul 2011 00:23:53 -0000 Received: (qmail 17686 invoked by uid 22791); 12 Jul 2011 00:23:52 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from dair.pair.com (HELO dair.pair.com) (209.68.1.49) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 12 Jul 2011 00:23:39 +0000 Received: (qmail 79598 invoked by uid 20157); 12 Jul 2011 00:23:38 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Jul 2011 00:23:38 -0000 Date: Tue, 12 Jul 2011 03:50:00 -0000 From: Hans-Peter Nilsson To: Bernd Schmidt cc: GCC Patches Subject: Re: Add __builtin_clrsb, similar to clz/ctz In-Reply-To: <4DFFA1AE.7070405@codesourcery.com> Message-ID: References: <4DF9FA9A.8040505@codesourcery.com> <4DFA2E85.2030601@redhat.com> <4DFFA1AE.7070405@codesourcery.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00867.txt.bz2 On Mon, 20 Jun 2011, Bernd Schmidt wrote: > New patch below. Retested on i686 and bfin. Yay, bikeshedding opportunity! :P Can we call them "leading *repeated* sign bits"? (in docs and comments) Calling them "redundant" makes you think the representation is not two's complement but new and improved... like (bitwise) (1<<31) == -1 or something. brgds, H-P PS. just a minor change, I can do the legwork.