From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 11 07:21:20 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 C19B1B85 for ; Thu, 11 Jun 2015 07:21:20 +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 9D8671AA9 for ; Thu, 11 Jun 2015 07:21:20 +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=V/eJ0dVqq7TiyrakM1GeeUavEynB2UV1uDRHYtsDg9Q=; b=eCbjc0d7FS4fAxcJq4Ew3Ffh9Jqv6htooyD8zl0nCPooQS6RjtH/n64xyWrxivR1QWVuVYi4nZJJrCyd1jPrUJRv1bahwpAHAJFGvlDuI9M7zHdDhxmzjGynx+eslsDmi82/nY+o2gITliPNCZRzqB/qoAT8KvdCZ/awgJ53l98=; Received: from [114.124.3.227] (port=51490 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 1Z2wnY-000UYx-MY; Thu, 11 Jun 2015 01:21:13 -0600 Date: Thu, 11 Jun 2015 15:21:07 +0800 From: Erich Dollansky To: Hans Petter Selasky Cc: "freebsd-hackers@freebsd.org" Subject: Re: allow ffs & co. a binary search Message-ID: <20150611152107.61f85189@B85M-HD3-0.alogt.com> In-Reply-To: <5573EA5E.40806@selasky.org> References: <20150607081315.7c0f09fb@B85M-HD3-0.alogt.com> <5573EA5E.40806@selasky.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 07:21:20 -0000 Hi Hans, On Sun, 07 Jun 2015 08:53:18 +0200 Hans Petter Selasky wrote: > On 06/07/15 02:13, Erich Dollansky wrote: > > > > /* > > * Find First Set bit > > */ > > int > > ffs(int mask) > > { as I would replace all except of what I have left above, I think that the copyright notice also should be changed. Whom should I place in there? I think using my name for a simple thing like this is a bit overdone. Erich