home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!van-bc!jonh.wimsey.bc.ca!jhenders
- From: jhenders@jonh.wimsey.bc.ca (John Henders)
- Newsgroups: comp.programming
- Message-ID: <H.b_Q8qXezVYo@jonh.wimsey.bc.ca>
- Organization: One of these days for sure
- Subject: Re: finding 1st one in integer
- References: <BsJ65w.Iv9@metropolis.com>
- <1992Aug06.114817.20716@donau.et.tudelft.nl>
- <BsM2z9.1KA@metropolis.com> <1992Aug9.072022.9391@linus.mitre.org>
- Reply-To: jhenders@jonh.wimsey.bc.ca
- X-Software: HERMES GUS 1.03 Rev. Apr 14 1992
- Date: Tue, 11 Aug 1992 18:50:04 -0700
- Lines: 15
-
- In <1992Aug9.072022.9391@linus.mitre.org>, Randy Crawford writes:
- >
- >And BTW, I too would be interested in a variant alg which could identify the
- >highest bit set in O(1) or O(2). I'll bet it's impossible since the hardware
- >doesn't naturally shift the bits to the right.
- >
- 68k chips support a rotate right or left which would allow a rotate,
- followed by a test of the lsb. Do any other chips have rotate?
- Of course, this wouldn't be portable, as it would have to be done in
- assembly.
-
-
- --
- jhenders@jonh.wimsey.bc.ca
-
-