home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / programm / 2047 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.0 KB

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