Newsgroups: comp.lang.lisp,sci.crypt,comp.lang.c
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!miner.usbm.gov!news.er.usgs.gov!news1.radix.net!news2.agis.net!agis!newsgod1.agis.net!agis!news7.agis.net!agis!newspeer1.agis.net!agis!news.minn.net!visi.com!mr.net!netnews.com!howland.erols.net!ix.netcom.com!hbaker
From: hbaker@netcom.com (Henry Baker)
Subject: Re: Name for fcn to find first low-order '1' bit in integer
Content-Type: text/plain; charset=ISO-8859-1
Message-ID: <hbaker-0602972113200001@10.0.2.1>
Sender: hbaker@netcom21.netcom.com
Content-Transfer-Encoding: 8bit
Organization: nil
X-Newsreader: Yet Another NewsWatcher 2.2.0
References: <hbaker-0302971702490001@10.0.2.1> <32F79D23.74DA@smarts.com> <AF1EB044966814C6B@bifroest.demon.co.uk> <3jvi85es6t.fsf@Np.nosc.mil>
Mime-Version: 1.0
Distribution: inet
Date: Fri, 7 Feb 1997 05:13:20 GMT
Lines: 6
Xref: glinda.oz.cs.cmu.edu comp.lang.lisp:25215 sci.crypt:61763 comp.lang.c:235427

In article <3jvi85es6t.fsf@Np.nosc.mil>, broman@nosc.mil wrote:

> I.e., I want to be able to find the index of the highest-order one bit in
> an integer.  (The implementation for floats is nearly trivial, of course. :-)

How about something like ldexp(float(x))?
