From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 11 14:43:55 2015 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FABDFDA; Thu, 11 Jun 2015 14:43:55 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59BA21143; Thu, 11 Jun 2015 14:43:55 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=juJQK5oWDi3gmOd3uHFqoX9nO40m3cF8YjeDCbqYDzo=; b=lsHn8wuFdR9HBMqcDeSmWLWHZ8Yt2K/oJVMSpCSsmBlmjKCa2NsM02ZGhJl0nekh5YnFyFKASDfJpIv4jej/zhqmXToDhSx/S+/l2kYae4a3k+vwcZXDF9mC9fgH+lFpzGYvh8EyeUM3SBginvJ2NkvE4hn+cbrKIrH7/8UlEPk=; Received: from [114.124.3.227] (port=17775 helo=B85M-HD3-0.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1Z33hw-000TWZ-NB; Thu, 11 Jun 2015 08:43:53 -0600 Date: Thu, 11 Jun 2015 22:43:47 +0800 From: Erich Dollansky To: Ian Lepore Cc: Hans Petter Selasky , "freebsd-hackers@freebsd.org" Subject: Re: allow ffs & co. a binary search Message-ID: <20150611224347.64372a76@B85M-HD3-0.alogt.com> In-Reply-To: <1434027471.1200.401.camel@freebsd.org> References: <20150607081315.7c0f09fb@B85M-HD3-0.alogt.com> <5573EA5E.40806@selasky.org> <20150611152107.61f85189@B85M-HD3-0.alogt.com> <1434027471.1200.401.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2015 14:43:55 -0000 Hi, On Thu, 11 Jun 2015 06:57:51 -0600 Ian Lepore wrote: > On Thu, 2015-06-11 at 15:21 +0800, Erich Dollansky wrote: > > On Sun, 07 Jun 2015 08:53:18 +0200 > > Hans Petter Selasky wrote: > > > Is there any reason that this whole change, userland and kernel, isn't > just: > > #define ffs(n) __builtin_ffs(n) I did not see this. Where is it? Of course, if this is already done, it does not have to be done again. Erich