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

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  2. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  3. Newsgroups: comp.programming
  4. Subject: Re: finding 1st one in integer
  5. Message-ID: <1992Jul24.145254.27713@klaava.Helsinki.FI>
  6. Date: 24 Jul 92 14:52:54 GMT
  7. References: <1992Jul21.173805.12045@bcrka451.bnr.ca> <1992Jul21.150033@is.morgan.com> <1992Jul22.121859.12676@public.sub.org>
  8. Organization: University of Helsinki
  9. Lines: 10
  10.  
  11. peterk@public.sub.org (Peter Kittel) writes:
  12. >Why tables? We *have* bit operators in C!
  13.  
  14. Speed.  Tables of suitable sizes are the best alternative if you want
  15. portable speed (the same code should work as fast as possible on as many
  16. machines as possible), and in fact is the fastest possibility on many
  17. machines.  This is true for many other bit counting operations as well.
  18.  
  19. --
  20. Lars.Wirzenius@helsinki.fi
  21.