delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/10/05:57:58

Date: Thu, 10 Jul 1997 15:21:13 +0530 (IST)
From: "Chirayu Krishnappa (chirayu AT poboxes DOT com)" <chirayu AT giasbga DOT vsnl DOT net DOT in>
To: djgpp AT delorie DOT com
Message-ID: <Pine.SV4.3.93.970710151909.18181A-100000@giasbga>
MIME-Version: 1.0

hi,

i need to find out if a 4 byte (default) integer has an even number of 1's
in its binary representation or not. I need to operate on 15Mb data and do
it fast. shifts (<<) and & is quite slow. is there some lib. function to
do this? what is the fastest way to get it done?

thanks.



Chirayu Krishnappa:
------------------
email: chirayu AT poboxes DOT com
Phone: +91 80 3332616.
-------------------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019