This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: adding fast bitops to egcs?


rich-paul@rich-paul.net writes:

|> On Tue, 27 Apr 1999, Mike Stump wrote:
|> 
|> > >   > 2) number of bits set
|> > > True.  No good pop count.
|> > 
|> > Yes, but one can do it in plain C rather easily and quickly, if one
|> > knows the right algorithm.
|> > 
|> 
|> OK, I'll bite ... what's your code?

Use a 256-byte lookup table.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]