home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!nsisrv!mimsy!rlgvax!scc
- From: scc@rlgvax.Reston.ICL.COM (Stephen Carlson)
- Newsgroups: comp.programming
- Subject: Re: finding 1st one in integer
- Message-ID: <1992Jul28.200415.5587@rlgvax.Reston.ICL.COM>
- Date: 28 Jul 92 20:04:15 GMT
- References: <Brqu3F.1J4@undergrad.math.waterloo.edu> <1992Jul24.030158.15492@bilver.uucp>
- Reply-To: scc@rlgvax.Reston.ICL.COM (Stephen Carlson)
- Organization: International Computers Limited, Reston, Virginia, USA
- Lines: 12
-
- >amichail@cayley.waterloo.edu (Amir Michail) writes:
- >>I need a very efficient way of finding the first bit set ( doesn't matter
- >>which side ) in a 32 bit integer.
-
- Use the TMS34010's LMO [leftmost one] instruction.
-
- I think a better job of specifying the problem/solution domain must be done,
- or else this query is unanswerable.
- --
- Stephen Carlson | ICL OFFICEPOWER Center | In theory, theory and
- scc@rlgvax.reston.icl.com | 11490 Commerce Park Drive | practice are the same.
- ..!uunet!rlgvax!scc | Reston, VA 22091 | (703) 648-3300
-