home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!iWarp.intel.com|inews!pinkas
- From: pinkas@caraway.intel.com (Israel Pinkas)
- Newsgroups: comp.programming
- Subject: Re: finding 1st one in integer
- Message-ID: <PINKAS.92Jul21181617@caraway.intel.com>
- Date: 22 Jul 92 01:16:17 GMT
- References: <Brqu3F.1J4@undergrad.math.waterloo.edu>
- <1992Jul21.173805.12045@bcrka451.bnr.ca> <14hsk4INNke@rodan.UU.NET>
- <1992Jul21.165726@is.morgan.com>
- Sender: news@inews.intel.com
- Organization: Software Technologies, INTeL Corporation, Santa Clara, CA
- Lines: 16
- In-reply-to: berlin@is.morgan.com's message of 21 Jul 92 20:57:26 GMT
-
- berlin@is.morgan.com (Alexander Berlin) writes:
-
- Vadim, you are assuming Big Endian, aren't you?
- The original article asked for PORTABLE code. ">>=" depends on byte order.
-
-
- >>= is very portable. Remeber:
-
- l>>=i is equivalent to l=l>>i. This effectively divides l by 2^i. Very
- portable.
-
- -Israel
- --
- Disclaimer: The above are my personal opinions, and in no way represent
- the opinions of Intel Corporation. In no way should the above be taken
- to be a statement of Intel.
-